-extern int debug_level;
-extern void openlogger(const char *, int);
-extern void logger(int, const char *, ...);
+extern debug_t debug_level;
+extern void openlogger(const char *, logmode_t);
+extern void logger(int, const char *, ...) __attribute__ ((__format__(printf, 2, 3)));