mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Change gcc named variadics to c99 ones. Ok otto@
This commit is contained in:
parent
909bf3e06b
commit
9b1f723979
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user