]> mj.ucw.cz Git - libucw.git/commitdiff
Format string arguments for die() should be checked as we do for log().
authorMartin Mares <mj@ucw.cz>
Fri, 10 Jun 2005 11:15:27 +0000 (11:15 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 10 Jun 2005 11:15:27 +0000 (11:15 +0000)
lib/lib.h
lib/log.c

index be42c41368eed57e553350b61c996181084955a2..edb16e0f6e42358240d13df064f76715023254c9 100644 (file)
--- 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);
index 92066d3e3100f30b52d18d99509d56618123f4ec..45235ce9d90cd1e668a47d4584885379ea008b71 100644 (file)
--- 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;