summaryrefslogtreecommitdiff
path: root/usr.sbin/wsmoused/wsmoused.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/wsmoused/wsmoused.h')
-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 */