Big header file cleanup: everything that has to do with standard system
[tinc] / src / logger.h
index f750770..615d0c3 100644 (file)
@@ -1,8 +1,5 @@
 #ifndef __TINC_LOGGER_H__
 
-#include <syslog.h>
-#include <stdarg.h>
-
 enum {
        DEBUG_NOTHING = 0,                      /* Quiet mode, only show starting/stopping of the daemon */
        DEBUG_ALWAYS = 0,
@@ -25,7 +22,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)