Loading...
--- Libc/Libc-763.12/db/hash/FreeBSD/hash.c.patch
+++ Libc/Libc-498/db/hash/FreeBSD/hash.c.patch
@@ -1,6 +1,11 @@
---- hash.c.orig 2009-11-06 12:41:16.000000000 -0800
-+++ hash.c 2009-11-06 12:41:27.000000000 -0800
-@@ -54,7 +54,7 @@ __FBSDID("$FreeBSD: src/lib/libc/db/hash
+Index: hash.c
+===================================================================
+RCS file: /cvs/root/Libc/db/hash/FreeBSD/hash.c,v
+retrieving revision 1.3
+diff -u -d -b -w -p -u -r1.3 hash.c
+--- hash.c 2004/11/25 19:37:57 1.3
++++ hash.c 2004/12/10 20:34:43
+@@ -58,7 +58,7 @@ __FBSDID("$FreeBSD: src/lib/libc/db/hash
#include <db.h>
#include "hash.h"
#include "page.h"
@@ -9,7 +14,7 @@
static int alloc_segs(HTAB *, int);
static int flush_meta(HTAB *);
-@@ -104,8 +104,7 @@ __hash_open(const char *file, int flags,
+@@ -108,8 +108,7 @@ __hash_open(file, flags, mode, info, dfl
int bpages, hdrsize, new_table, nsegs, save_errno;
if ((flags & O_ACCMODE) == O_WRONLY) {
@@ -19,12 +24,3 @@
}
if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB))))
-@@ -684,7 +683,7 @@ found:
- return (ERROR);
- break;
- default:
-- abort();
-+ LIBC_ABORT("illegal action (%d)", action);
- }
- save_bufp->flags &= ~BUF_PIN;
- return (SUCCESS);