diff --git a/common.h b/common.h index 08ea6e0..84abce9 100644 --- a/common.h +++ b/common.h @@ -14,13 +14,13 @@ #include #ifdef DEBUG -#define debug(x...) dsyslog("SATIP: " x); -#define info(x...) isyslog("SATIP: " x); -#define error(x...) esyslog("ERROR: " x); +#define debug(x...) dsyslog("SATIP: " x) +#define info(x...) isyslog("SATIP: " x) +#define error(x...) esyslog("ERROR: " x) #else -#define debug(x...) ; -#define info(x...) isyslog("SATIP: " x); -#define error(x...) esyslog("ERROR: " x); +#define debug(x...) {} +#define info(x...) isyslog("SATIP: " x) +#define error(x...) esyslog("ERROR: " x) #endif #define ELEMENTS(x) (sizeof(x) / sizeof(x[0]))