summaryrefslogtreecommitdiffstats
path: root/lib/libc/db/btree/bt_utils.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-03-23 19:34:58 +0000
committerotto <otto@openbsd.org>2005-03-23 19:34:58 +0000
commite20a56a53b18fb9479a580438ff1988d9a3762a7 (patch)
tree5c73c3cb61ac48a309a522f88f0b405a051566bc /lib/libc/db/btree/bt_utils.c
parentderegister & ansify. ok deraad@ marco@ cloder@ (diff)
downloadwireguard-openbsd-e20a56a53b18fb9479a580438ff1988d9a3762a7.tar.xz
wireguard-openbsd-e20a56a53b18fb9479a580438ff1988d9a3762a7.zip
ansify. ok deraadt@ moritz@
Diffstat (limited to 'lib/libc/db/btree/bt_utils.c')
-rw-r--r--lib/libc/db/btree/bt_utils.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/lib/libc/db/btree/bt_utils.c b/lib/libc/db/btree/bt_utils.c
index a64d5cddf39..8f816bbecca 100644
--- a/lib/libc/db/btree/bt_utils.c
+++ b/lib/libc/db/btree/bt_utils.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bt_utils.c,v 1.7 2005/01/03 22:46:43 millert Exp $ */
+/* $OpenBSD: bt_utils.c,v 1.8 2005/03/23 19:34:58 otto Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -36,7 +36,7 @@
#if 0
static char sccsid[] = "@(#)bt_utils.c 8.8 (Berkeley) 7/20/94";
#else
-static const char rcsid[] = "$OpenBSD: bt_utils.c,v 1.7 2005/01/03 22:46:43 millert Exp $";
+static const char rcsid[] = "$OpenBSD: bt_utils.c,v 1.8 2005/03/23 19:34:58 otto Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -66,11 +66,7 @@ static const char rcsid[] = "$OpenBSD: bt_utils.c,v 1.7 2005/01/03 22:46:43 mill
* RET_SUCCESS, RET_ERROR.
*/
int
-__bt_ret(t, e, key, rkey, data, rdata, copy)
- BTREE *t;
- EPG *e;
- DBT *key, *rkey, *data, *rdata;
- int copy;
+__bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata, int copy)
{
BLEAF *bl;
void *p;
@@ -152,10 +148,7 @@ dataonly:
* > 0 if k1 is > record
*/
int
-__bt_cmp(t, k1, e)
- BTREE *t;
- const DBT *k1;
- EPG *e;
+__bt_cmp(BTREE *t, const DBT *k1, EPG *e)
{
BINTERNAL *bi;
BLEAF *bl;
@@ -215,8 +208,7 @@ __bt_cmp(t, k1, e)
* > 0 if a is > b
*/
int
-__bt_defcmp(a, b)
- const DBT *a, *b;
+__bt_defcmp(const DBT *a, const DBT *b)
{
size_t len;
u_char *p1, *p2;