summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-09-16 13:08:55 +0000
committerart <art@openbsd.org>2001-09-16 13:08:55 +0000
commit275525bd095066e0c007fd8f6c033a29fc858588 (patch)
tree342eeee0a40cd3efb2d604ac31f3b9e888f75e21
parentbye bye (diff)
downloadwireguard-openbsd-275525bd095066e0c007fd8f6c033a29fc858588.tar.xz
wireguard-openbsd-275525bd095066e0c007fd8f6c033a29fc858588.zip
return 0, not NULL, the function returns an int
-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;