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 __dberr: tweak signature to make gcc8 -Wbad-f...



details:   https://anonhg.NetBSD.org/src/rev/7a80331c9064
branches:  trunk
changeset: 455049:7a80331c9064
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Oct 05 18:07:58 2019 +0000

description:
__dberr: tweak signature to make gcc8 -Wbad-function-cast happy about
casts in __dbpanic.  Admittedly this is a bit too "cute".

diffstat:

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

diffs (36 lines):

diff -r 2b62f43ee908 -r 7a80331c9064 lib/libc/db/db/db.c
--- a/lib/libc/db/db/db.c       Sat Oct 05 18:06:16 2019 +0000
+++ b/lib/libc/db/db/db.c       Sat Oct 05 18:07:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db.c,v 1.19 2019/10/05 18:01:52 uwe Exp $      */
+/*     $NetBSD: db.c,v 1.20 2019/10/05 18:07:58 uwe Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: db.c,v 1.19 2019/10/05 18:01:52 uwe Exp $");
+__RCSID("$NetBSD: db.c,v 1.20 2019/10/05 18:07:58 uwe Exp $");
 
 #include "namespace.h"
 #include <sys/types.h>
@@ -45,7 +45,7 @@
 #include <stdio.h>
 
 #include <db.h>
-static int __dberr(void);
+static int __dberr(const DB *, ...);
 
 #ifdef __weak_alias
 __weak_alias(dbopen,_dbopen)
@@ -82,7 +82,7 @@
 }
 
 static int
-__dberr(void)
+__dberr(const DB *dbp, ...)
 {
        return (RET_ERROR);
 }



Home | Main Index | Thread Index | Old Index