summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-16 13:08:56 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-16 13:08:56 +0000
commitfef6b0388c91a0f98c12f4988b5391aa6624fe26 (patch)
treea6a06ca4120eda1d1379f7d617c921f23a6dd03c /lib
parentbf8edb9da9ea80f5fb06c391bebc6d6bb6e1f006 (diff)
return 0, not NULL, the function returns an int
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/db/btree/bt_seq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/btree/bt_seq.c b/lib/libc/db/btree/bt_seq.c
index 17cfef69432..e26c8606cb4 100644
--- a/lib/libc/db/btree/bt_seq.c
+++ b/lib/libc/db/btree/bt_seq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bt_seq.c,v 1.4 1999/02/15 05:11:23 millert Exp $ */
+/* $OpenBSD: bt_seq.c,v 1.5 2001/09/16 13:08:55 art Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)bt_seq.c 8.7 (Berkeley) 7/20/94";
#else
-static char rcsid[] = "$OpenBSD: bt_seq.c,v 1.4 1999/02/15 05:11:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: bt_seq.c,v 1.5 2001/09/16 13:08:55 art Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -364,7 +364,7 @@ __bt_first(t, key, erval, exactp)
* page) and return it.
*/
if ((ep = __bt_search(t, key, exactp)) == NULL)
- return (NULL);
+ return (0);
if (*exactp) {
if (F_ISSET(t, B_NODUPS)) {
*erval = *ep;