fix up potential printf's with unsafe format strings
[oweals/busybox.git] / libbb / perror_msg_and_die.c
index 15f46fc05121bcc54f3f1f493adf19f1ebafed25..15615fa22f6e7a34668e4229fd927947e4262705 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "libbb.h"
 
-void bb_perror_msg_and_die(const char *s, ...)
+void FAST_FUNC bb_perror_msg_and_die(const char *s, ...)
 {
        va_list p;
 
@@ -19,3 +19,8 @@ void bb_perror_msg_and_die(const char *s, ...)
        va_end(p);
        xfunc_die();
 }
+
+void FAST_FUNC bb_simple_perror_msg_and_die(const char *s)
+{
+       bb_perror_msg_and_die("%s", s);
+}