Sheldon Hearn <[EMAIL PROTECTED]> writes:
> static inline void
> xdaemonwarn(char *fmt, ...)
> {
> va_list ap;
>
> va_start(ap, fmt);
> if (!daemon_quiet)
> warn(fmt, ap);
> va_end(ap);
>
> return;
> }
>
> GCC gives "syntax error before 'void'". Fair enough.
As other people have been saying, you need to use `vwarn'. The
following code compiles fine for me with a 4.3-STABLE gcc.
/assar
#include <stdarg.h>
#include <err.h>
static int daemon_quiet;
static inline void
xdaemonwarn(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (!daemon_quiet)
vwarn(fmt, ap);
va_end(ap);
}
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message