summaryrefslogtreecommitdiffstats
path: root/lib/libc/db
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-06-25 21:15:04 +0000
committerderaadt <deraadt@openbsd.org>2003-06-25 21:15:04 +0000
commitb7fd35b8dfa47d8fcfd150b26105ba683b6cfdee (patch)
treedbf10512635144cffa1ebdd15feb81efa988f6af /lib/libc/db
parentfix protos (diff)
downloadwireguard-openbsd-b7fd35b8dfa47d8fcfd150b26105ba683b6cfdee.tar.xz
wireguard-openbsd-b7fd35b8dfa47d8fcfd150b26105ba683b6cfdee.zip
pull in headers
Diffstat (limited to 'lib/libc/db')
-rw-r--r--lib/libc/db/db/db.c8
-rw-r--r--lib/libc/db/hash/hash_log2.c10
-rw-r--r--lib/libc/db/hash/ndbm.c5
3 files changed, 14 insertions, 9 deletions
diff --git a/lib/libc/db/db/db.c b/lib/libc/db/db/db.c
index 52d450f8ddd..779b86ddf47 100644
--- a/lib/libc/db/db/db.c
+++ b/lib/libc/db/db/db.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db.c,v 1.7 2003/06/02 20:18:33 millert Exp $ */
+/* $OpenBSD: db.c,v 1.8 2003/06/25 21:15:04 deraadt Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -33,7 +33,7 @@
#if 0
static char sccsid[] = "@(#)db.c 8.4 (Berkeley) 2/21/94";
#else
-static const char rcsid[] = "$OpenBSD: db.c,v 1.7 2003/06/02 20:18:33 millert Exp $";
+static const char rcsid[] = "$OpenBSD: db.c,v 1.8 2003/06/25 21:15:04 deraadt Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -46,6 +46,8 @@ static const char rcsid[] = "$OpenBSD: db.c,v 1.7 2003/06/02 20:18:33 millert Ex
#include <db.h>
+static int __dberr(void);
+
DB *
dbopen(fname, flags, mode, type, openinfo)
const char *fname;
@@ -76,7 +78,7 @@ dbopen(fname, flags, mode, type, openinfo)
}
static int
-__dberr()
+__dberr(void)
{
return (RET_ERROR);
}
diff --git a/lib/libc/db/hash/hash_log2.c b/lib/libc/db/hash/hash_log2.c
index 64883f5d51d..ae3731e141a 100644
--- a/lib/libc/db/hash/hash_log2.c
+++ b/lib/libc/db/hash/hash_log2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash_log2.c,v 1.6 2003/06/02 20:18:34 millert Exp $ */
+/* $OpenBSD: hash_log2.c,v 1.7 2003/06/25 21:15:05 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -36,15 +36,17 @@
#if 0
static char sccsid[] = "@(#)hash_log2.c 8.4 (Berkeley) 11/7/95";
#else
-static const char rcsid[] = "$OpenBSD: hash_log2.c,v 1.6 2003/06/02 20:18:34 millert Exp $";
+static const char rcsid[] = "$OpenBSD: hash_log2.c,v 1.7 2003/06/25 21:15:05 deraadt Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
#include <db.h>
+#include "hash.h"
+#include "page.h"
+#include "extern.h"
u_int32_t
-__log2(num)
- u_int32_t num;
+__log2(u_int32_t num)
{
u_int32_t i, limit;
diff --git a/lib/libc/db/hash/ndbm.c b/lib/libc/db/hash/ndbm.c
index 15942883d4a..6187996e97f 100644
--- a/lib/libc/db/hash/ndbm.c
+++ b/lib/libc/db/hash/ndbm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ndbm.c,v 1.16 2003/06/02 20:18:34 millert Exp $ */
+/* $OpenBSD: ndbm.c,v 1.17 2003/06/25 21:15:05 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -36,7 +36,7 @@
#if 0
static char sccsid[] = "@(#)dbm.c 8.6 (Berkeley) 11/7/95";
#else
-static const char rcsid[] = "$OpenBSD: ndbm.c,v 1.16 2003/06/02 20:18:34 millert Exp $";
+static const char rcsid[] = "$OpenBSD: ndbm.c,v 1.17 2003/06/25 21:15:05 deraadt Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -48,6 +48,7 @@ static const char rcsid[] = "$OpenBSD: ndbm.c,v 1.16 2003/06/02 20:18:34 millert
#include <string.h>
#include <ndbm.h>
+#include <dbm.h>
#include "hash.h"
/*