Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/db/db __dbpanic: use the official DB typedef name i...



details:   https://anonhg.NetBSD.org/src/rev/174371b081dd
branches:  trunk
changeset: 965905:174371b081dd
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Oct 05 18:01:52 2019 +0000

description:
__dbpanic: use the official DB typedef name in the casts.  They were
copied from the declaration point where it's not yet available.

diffstat:

 lib/libc/db/db/db.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r 9e74565ac80d -r 174371b081dd lib/libc/db/db/db.c
--- a/lib/libc/db/db/db.c       Sat Oct 05 17:36:47 2019 +0000
+++ b/lib/libc/db/db/db.c       Sat Oct 05 18:01:52 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db.c,v 1.18 2015/05/19 13:20:52 christos Exp $ */
+/*     $NetBSD: db.c,v 1.19 2019/10/05 18:01:52 uwe Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: db.c,v 1.18 2015/05/19 13:20:52 christos Exp $");
+__RCSID("$NetBSD: db.c,v 1.19 2019/10/05 18:01:52 uwe Exp $");
 
 #include "namespace.h"
 #include <sys/types.h>
@@ -97,10 +97,10 @@
 __dbpanic(DB *dbp)
 {
        /* The only thing that can succeed is a close. */
-       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;
+       dbp->del = (int (*)(const DB *, const DBT *, u_int))__dberr;
+       dbp->fd = (int (*)(const DB *))__dberr;
+       dbp->get = (int (*)(const DB *, const DBT *, DBT *, u_int))__dberr;
+       dbp->put = (int (*)(const DB *, DBT *, const DBT *, u_int))__dberr;
+       dbp->seq = (int (*)(const DB *, DBT *, DBT *, u_int))__dberr;
+       dbp->sync = (int (*)(const DB *, u_int))__dberr;
 }



Home | Main Index | Thread Index | Old Index