Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/db/recno indx_t can be a 16 bit type, and is thus n...
details: https://anonhg.NetBSD.org/src/rev/eef68de4358b
branches: trunk
changeset: 515647:eef68de4358b
user: aymeric <aymeric%NetBSD.org@localhost>
date: Sun Sep 30 21:12:00 2001 +0000
description:
indx_t can be a 16 bit type, and is thus not suited to hold a difference
between two pointers in the general case. Replace it by ptrdiff_t.
-> recno databases can now handle records of more than 64KB
-> nvi can now handle files with lines bigger than 64KB
Problem and fix suggested by FreeBSD PR#9350
diffstat:
lib/libc/db/recno/rec_get.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a36a7ba86dd3 -r eef68de4358b lib/libc/db/recno/rec_get.c
--- a/lib/libc/db/recno/rec_get.c Sun Sep 30 20:52:40 2001 +0000
+++ b/lib/libc/db/recno/rec_get.c Sun Sep 30 21:12:00 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rec_get.c,v 1.10 1997/07/21 14:06:44 jtc Exp $ */
+/* $NetBSD: rec_get.c,v 1.11 2001/09/30 21:12:00 aymeric Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)rec_get.c 8.9 (Berkeley) 8/18/94";
#else
-__RCSID("$NetBSD: rec_get.c,v 1.10 1997/07/21 14:06:44 jtc Exp $");
+__RCSID("$NetBSD: rec_get.c,v 1.11 2001/09/30 21:12:00 aymeric Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -189,7 +189,7 @@
{
DBT data;
recno_t nrec;
- indx_t len;
+ ptrdiff_t len;
size_t sz;
int bval, ch;
u_char *p;
Home |
Main Index |
Thread Index |
Old Index