summaryrefslogtreecommitdiff
path: root/include/busybox.h
diff options
context:
space:
mode:
authorEric Andersen2001-02-22 23:38:48 +0000
committerEric Andersen2001-02-22 23:38:48 +0000
commitc163e5107f0af0f395f9998ee195896f6fa1b2e1 (patch)
treef31c51ab0ca271ddaa2f415807ac1cd23408dc7b /include/busybox.h
parent544891dd2606ad3beb0aed65feaacc7a100c9dd2 (diff)
downloadbusybox-c163e5107f0af0f395f9998ee195896f6fa1b2e1.zip
busybox-c163e5107f0af0f395f9998ee195896f6fa1b2e1.tar.gz
Turn off the printf attribute for the ?error_msg* functions, since it
is ok to pass them a NULL, unlike printf. This silences a pointless warning message. -Erik
Diffstat (limited to 'include/busybox.h')
-rw-r--r--include/busybox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/busybox.h b/include/busybox.h
index 692a908..8d4976a 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -89,10 +89,10 @@ extern const struct BB_applet applets[];
extern const char *applet_name;
extern void show_usage(void) __attribute__ ((noreturn));
-extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
-extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
-extern void perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
-extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
+extern void error_msg(const char *s, ...);
+extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
+extern void perror_msg(const char *s, ...);
+extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
const char *mode_string(int mode);
const char *time_string(time_t timeVal);