summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/syslogd.h
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-08-19 06:09:23 +0000
committerdlg <dlg@openbsd.org>2013-08-19 06:09:23 +0000
commitfed7cde0de25d078745b3e255be9e51f9e57cc64 (patch)
tree16039bbaa1bf85ef51c75f3540f5e36981b51341 /usr.sbin/syslogd/syslogd.h
parentdata_access_emulation() may fault. Be sure to clear pcb_onfault before (diff)
downloadwireguard-openbsd-fed7cde0de25d078745b3e255be9e51f9e57cc64.tar.xz
wireguard-openbsd-fed7cde0de25d078745b3e255be9e51f9e57cc64.zip
put do { } while (0) around the dprintf macro to make it less scary
ok deraadt@
Diffstat (limited to 'usr.sbin/syslogd/syslogd.h')
-rw-r--r--usr.sbin/syslogd/syslogd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h
index 9649ff28237..ee8b4f0a8f8 100644
--- a/usr.sbin/syslogd/syslogd.h
+++ b/usr.sbin/syslogd/syslogd.h
@@ -42,7 +42,7 @@ extern int nfunix;
extern char *funixn[MAXFUNIX];
extern char *ctlsock_path;
-#define dprintf if (Debug) printf
+#define dprintf(_f...) do { if (Debug) printf(_f); } while (0)
extern int Debug;
extern int Startup;