discrepancies between format string and arguments get easily found.
#define L_ERROR_R 'e'
#define L_FATAL '!' /* die() */
-void log(unsigned int cat, byte *msg, ...);
+void log(unsigned int cat, const char *msg, ...) __attribute__((format(printf,2,3)));
void die(byte *, ...) NONRET;
void log_init(byte *);
void log_file(byte *);
}
static void
-vlog(unsigned int cat, byte *msg, va_list args)
+vlog(unsigned int cat, const char *msg, va_list args)
{
time_t tim = time(NULL);
struct tm *tm = localtime(&tim);
}
void
-log(unsigned int cat, byte *msg, ...)
+log(unsigned int cat, const char *msg, ...)
{
va_list args;