Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/include CID 273814, don't confuse coverity.



details:   https://anonhg.NetBSD.org/src/rev/266edc8994ce
branches:  trunk
changeset: 327903:266edc8994ce
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 20 17:25:23 2014 +0000

description:
CID 273814, don't confuse coverity.

diffstat:

 lib/libc/include/port_before.h |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r c050002cc579 -r 266edc8994ce lib/libc/include/port_before.h
--- a/lib/libc/include/port_before.h    Thu Mar 20 16:53:55 2014 +0000
+++ b/lib/libc/include/port_before.h    Thu Mar 20 17:25:23 2014 +0000
@@ -2,8 +2,12 @@
 #include <sys/cdefs.h>
 #define ISC_FORMAT_PRINTF(a,b) __attribute__((__format__(__printf__,a,b)))
 #define ISC_SOCKLEN_T  socklen_t
+#ifdef __NetBSD__
+#define DE_CONST(c,v)  v = __UNCONST(c)
+#else
 #define DE_CONST(c,v)  v = ((c) ? \
        strchr((const void *)(c), *(const char *)(const void *)(c)) : NULL)
+#endif
 #ifndef lint
 #define UNUSED(a)      (void)&a
 #else



Home | Main Index | Thread Index | Old Index