From: Martin Mares Date: Fri, 10 Jun 2005 11:15:27 +0000 (+0000) Subject: Format string arguments for die() should be checked as we do for log(). X-Git-Tag: holmes-import~771 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e83ad7ed1dce4c9748e4afe53d165e54996e182f;p=libucw.git Format string arguments for die() should be checked as we do for log(). --- diff --git a/lib/lib.h b/lib/lib.h index be42c413..edb16e0f 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -82,7 +82,7 @@ extern void (*log_switch_hook)(struct tm *tm); void log_msg(unsigned int cat, const char *msg, ...) __attribute__((format(printf,2,3))); #define log log_msg void vlog_msg(unsigned int cat, const char *msg, va_list args); -void die(byte *, ...) NONRET; +void die(const char *, ...) NONRET __attribute__((format(printf,1,2))); void log_init(byte *argv0); void log_file(byte *name); void log_fork(void); diff --git a/lib/log.c b/lib/log.c index 92066d3e..45235ce9 100644 --- a/lib/log.c +++ b/lib/log.c @@ -83,7 +83,7 @@ log_msg(unsigned int cat, const char *msg, ...) } void -die(byte *msg, ...) +die(const char *msg, ...) { va_list args;