diff options
author | 2013-08-19 06:09:23 +0000 | |
---|---|---|
committer | 2013-08-19 06:09:23 +0000 | |
commit | fed7cde0de25d078745b3e255be9e51f9e57cc64 (patch) | |
tree | 16039bbaa1bf85ef51c75f3540f5e36981b51341 /usr.sbin/syslogd/syslogd.h | |
parent | data_access_emulation() may fault. Be sure to clear pcb_onfault before (diff) | |
download | wireguard-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.h | 2 |
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; |