Use variadic macros that comply with C99. Keep the GCC-style ones if

DEBUG is defined and GCC is used.
This commit is contained in:
Stefan Farfeleder 2006-07-17 20:39:08 +00:00
parent 4b8d8ccc23
commit 143a84cb95

View File

@ -56,7 +56,7 @@ int ypclnt_passwd(ypclnt_t *, const struct passwd *, const char *);
#if defined(DEBUG) && defined(__GNUC__)
#define YPCLNT_DEBUG(fmt...) warnx(__FUNCTION__ ": " fmt, ##fmt)
#else
#define YPCLNT_DEBUG(fmt...)
#define YPCLNT_DEBUG(...)
#endif
#endif