summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2020-12-01 16:19:38 +0000
committermillert <millert@openbsd.org>2020-12-01 16:19:38 +0000
commitb8e3e6e24c1db8d34a1bbc63be3e5a09b79f8e17 (patch)
tree50732d4f1b8bcb313e9ec6412560a147404ae163 /lib/libc
parentExtract another couple of chunks from main() into helper functions, (diff)
downloadwireguard-openbsd-b8e3e6e24c1db8d34a1bbc63be3e5a09b79f8e17.tar.xz
wireguard-openbsd-b8e3e6e24c1db8d34a1bbc63be3e5a09b79f8e17.zip
Set type to DB_RECNO in __rec_open() for consistency with other db types.
From Boudewijn Dijkstra
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/db/recno/rec_open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/db/recno/rec_open.c b/lib/libc/db/recno/rec_open.c
index 6683c9fd03e..c8b5a822ecd 100644
--- a/lib/libc/db/recno/rec_open.c
+++ b/lib/libc/db/recno/rec_open.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rec_open.c,v 1.13 2016/09/21 04:38:56 guenther Exp $ */
+/* $OpenBSD: rec_open.c,v 1.14 2020/12/01 16:19:38 millert Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -154,6 +154,7 @@ slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL)
dbp->put = __rec_put;
dbp->seq = __rec_seq;
dbp->sync = __rec_sync;
+ dbp->type = DB_RECNO;
/* If the root page was created, reset the flags. */
if ((h = mpool_get(t->bt_mp, P_ROOT, 0)) == NULL)