From e83ad7ed1dce4c9748e4afe53d165e54996e182f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 10 Jun 2005 11:15:27 +0000 Subject: [PATCH] Format string arguments for die() should be checked as we do for log(). --- lib/lib.h | 2 +- lib/log.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2