summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAnders Magnusson <ragge@cvs.openbsd.org>2008-06-20 14:17:21 +0000
committerAnders Magnusson <ragge@cvs.openbsd.org>2008-06-20 14:17:21 +0000
commitd29aa90b4e2aaba0d9631de0e7844c9a2998ba39 (patch)
tree213912def3f84f251f4192363103978fa83d67e9 /usr.sbin
parent3727702a736f6988b8adaddd1f271f678522ae2f (diff)
Change gcc named variadics to c99 ones. Ok otto@
Diffstat (limited to 'usr.sbin')
-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 */