diff options
Diffstat (limited to 'lib/libc/db/db/db.c')
-rw-r--r-- | lib/libc/db/db/db.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/lib/libc/db/db/db.c b/lib/libc/db/db/db.c index 287def0..7f18a8d 100644 --- a/lib/libc/db/db/db.c +++ b/lib/libc/db/db/db.c @@ -42,12 +42,10 @@ __FBSDID("$FreeBSD$"); #include <db.h> +static int __dberr(void); + DB * -dbopen(fname, flags, mode, type, openinfo) - const char *fname; - int flags, mode; - DBTYPE type; - const void *openinfo; +dbopen(const char *fname, int flags, int mode, DBTYPE type, const void *openinfo) { #define DB_FLAGS (DB_LOCK | DB_SHMEM | DB_TXN) @@ -72,7 +70,7 @@ dbopen(fname, flags, mode, type, openinfo) } static int -__dberr() +__dberr(void) { return (RET_ERROR); } @@ -84,14 +82,13 @@ __dberr() * dbp: pointer to the DB structure. */ void -__dbpanic(dbp) - DB *dbp; +__dbpanic(DB *dbp) { /* The only thing that can succeed is a close. */ - dbp->del = (int (*)())__dberr; - dbp->fd = (int (*)())__dberr; - dbp->get = (int (*)())__dberr; - dbp->put = (int (*)())__dberr; - dbp->seq = (int (*)())__dberr; - dbp->sync = (int (*)())__dberr; + dbp->del = (int (*)(const struct __db *, const DBT*, u_int))__dberr; + dbp->fd = (int (*)(const struct __db *))__dberr; + dbp->get = (int (*)(const struct __db *, const DBT*, DBT *, u_int))__dberr; + dbp->put = (int (*)(const struct __db *, DBT *, const DBT *, u_int))__dberr; + dbp->seq = (int (*)(const struct __db *, DBT *, DBT *, u_int))__dberr; + dbp->sync = (int (*)(const struct __db *, u_int))__dberr; } |