Module Name: src
Committed By: christos
Date: Thu Mar 20 17:25:23 UTC 2014
Modified Files:
src/lib/libc/include: port_before.h
Log Message:
CID 273814, don't confuse coverity.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/include/port_before.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/include/port_before.h
diff -u src/lib/libc/include/port_before.h:1.3 src/lib/libc/include/port_before.h:1.4
--- src/lib/libc/include/port_before.h:1.3 Thu Mar 17 15:48:50 2005
+++ src/lib/libc/include/port_before.h Thu Mar 20 13:25:23 2014
@@ -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