Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/syslogd according to C99 6.5.15 in a conditional ex...



details:   https://anonhg.NetBSD.org/src/rev/3c08d94dfeb6
branches:  trunk
changeset: 810638:3c08d94dfeb6
user:      plunky <plunky%NetBSD.org@localhost>
date:      Tue Sep 08 18:33:12 2015 +0000

description:
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()'

diffstat:

 usr.sbin/syslogd/syslogd.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5cfc16a4d0aa -r 3c08d94dfeb6 usr.sbin/syslogd/syslogd.h
--- a/usr.sbin/syslogd/syslogd.h        Tue Sep 08 16:06:42 2015 +0000
+++ b/usr.sbin/syslogd/syslogd.h        Tue Sep 08 18:33:12 2015 +0000
@@ -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 @@
 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 */



Home | Main Index | Thread Index | Old Index