From: Guus Sliepen Date: Sat, 12 Jul 2003 20:24:04 +0000 (+0000) Subject: Format string checking for logger(). X-Git-Tag: release-1.0~64 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=784db4e70d2573468c82ff5dfee723b77a20322f;p=tinc Format string checking for logger(). --- diff --git a/src/logger.h b/src/logger.h index f7507707..edd0d933 100644 --- a/src/logger.h +++ b/src/logger.h @@ -25,7 +25,7 @@ enum { extern int debug_level; extern void openlogger(const char *, int); -extern void logger(int, const char *, ...); +extern void logger(int, const char *, ...) __attribute__ ((format(printf, 2, 3))); extern void closelogger(void); #define ifdebug(l) if(debug_level >= DEBUG_##l)