summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wsmoused
diff options
context:
space:
mode:
authorragge <ragge@openbsd.org>2008-06-20 14:17:20 +0000
committerragge <ragge@openbsd.org>2008-06-20 14:17:20 +0000
commit9b1f72397920008aeaa679820fa5975764a26e64 (patch)
tree8528f8c17a8f0be04be1e3bd4b2d2589eee270aa /usr.sbin/wsmoused
parentProperly send -D arguments to server when run as a client. Issue spotted (diff)
downloadwireguard-openbsd-9b1f72397920008aeaa679820fa5975764a26e64.tar.xz
wireguard-openbsd-9b1f72397920008aeaa679820fa5975764a26e64.zip
Change gcc named variadics to c99 ones. Ok otto@
Diffstat (limited to 'usr.sbin/wsmoused')
-rw-r--r--usr.sbin/wsmoused/wsmoused.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.h b/usr.sbin/wsmoused/wsmoused.h
index d345cb9b7f2..7a80870d234 100644
--- a/usr.sbin/wsmoused/wsmoused.h
+++ b/usr.sbin/wsmoused/wsmoused.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.h,v 1.5 2007/04/10 22:40:02 miod Exp $ */
+/* $OpenBSD: wsmoused.h,v 1.6 2008/06/20 14:17:20 ragge Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -57,25 +57,25 @@
extern char *pidfile;
-#define debug(fmt,args...) \
- if (debug&&nodaemon) printf(fmt, ##args)
+#define debug(fmt, ...) \
+ if (debug&&nodaemon) printf(fmt, __VA_ARGS__)
-#define logerr(e, fmt, args...) \
+#define logerr(e, ...) \
do { \
unlink(pidfile); \
if (background) { \
- syslog(LOG_ERR, fmt, ##args); \
+ syslog(LOG_ERR, __VA_ARGS__); \
exit(e); \
} else \
- errx(e, fmt, ##args); \
+ errx(e, __VA_ARGS__); \
} while (0)
-#define logwarn(fmt, args...) \
+#define logwarn(...) \
do { \
if (background) \
- syslog(LOG_WARNING, fmt, ##args); \
+ syslog(LOG_WARNING, __VA_ARGS__); \
else \
- warnx(fmt, ##args); \
+ warnx(__VA_ARGS__); \
} while (0)
/* Daemon flags */