diff options
| author | christos <christos@NetBSD.org> | 2014-03-20 17:25:23 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2014-03-20 17:25:23 +0000 |
| commit | 1ea9dbfb0e3eb52b251f660d2af4404380020cb7 (patch) | |
| tree | 3ae264b1c160954ff9cddbcb7950546063f2f5db /lib/libc/include | |
| parent | 6a22cbd7d9143c13024341329feb3a0330d27e02 (diff) | |
CID 273814, don't confuse coverity.
Diffstat (limited to 'lib/libc/include')
| -rw-r--r-- | lib/libc/include/port_before.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/include/port_before.h b/lib/libc/include/port_before.h index 36217ac54ed..0be03a7d24b 100644 --- a/lib/libc/include/port_before.h +++ b/lib/libc/include/port_before.h @@ -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 |
