Module Name: src
Committed By: plunky
Date: Tue Sep 8 18:33:12 UTC 2015
Modified Files:
src/usr.sbin/syslogd: syslogd.h
Log Message:
according to C99 6.5.15 in a conditional expression, both
operands should be of compatible types.
So, use ((void)0) here to match `void dbprintf()'
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/syslogd/syslogd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/syslogd/syslogd.h
diff -u src/usr.sbin/syslogd/syslogd.h:1.6 src/usr.sbin/syslogd/syslogd.h:1.7
--- src/usr.sbin/syslogd/syslogd.h:1.6 Sun Feb 15 14:51:57 2015
+++ src/usr.sbin/syslogd/syslogd.h Tue Sep 8 18:33:12 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.h,v 1.6 2015/02/15 14:51:57 joerg Exp $ */
+/* $NetBSD: syslogd.h,v 1.7 2015/09/08 18:33:12 plunky Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -154,7 +154,7 @@ char *strndup(const char *str, size_t n)
void dbprintf(const char *, const char *, size_t, const char *, ...)
__printflike(4, 5);
#define DPRINTF(x, ...) /*LINTED null effect */(void)(Debug & (x) \
- ? dbprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) : 0)
+ ? dbprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) : ((void)0))
#endif
/* shortcuts for libevent */