From 563e2dfc9648e35868de04b20d97ad198d9f9a35 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 9 Jul 2009 21:30:14 +0200 Subject: [PATCH] Compatibility with gcc 2.95.x: add spaces around __VA__ARGS__ --- src/lldpd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lldpd.h b/src/lldpd.h index d3cc84fe..e1c76679 100644 --- a/src/lldpd.h +++ b/src/lldpd.h @@ -416,13 +416,13 @@ char *dmi_asset(); /* log.c */ void log_init(int); void log_warn(const char *, ...); -#define LLOG_WARN(x,...) log_warn("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_WARN(x,...) log_warn("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void log_warnx(const char *, ...); -#define LLOG_WARNX(x,...) log_warnx("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_WARNX(x,...) log_warnx("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void log_info(const char *, ...); -#define LLOG_INFO(x,...) log_info("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_INFO(x,...) log_info("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void log_debug(const char *, ...); -#define LLOG_DEBUG(x,...) log_debug("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_DEBUG(x,...) log_debug("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void fatal(const char *); void fatalx(const char *); -- 2.39.5