aboutsummaryrefslogtreecommitdiff
path: root/libbb/perror_nomsg_and_die.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 18:17:42 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-26 18:17:42 +0000
commit666da5e2c6edec979966d16771818b32dcfafe04 (patch)
treec23e6a01fc51d8419c1562f70836148c705ac46a /libbb/perror_nomsg_and_die.c
parent270c17c0e66ffe9fe0e47e891a583b5c6f8512ef (diff)
downloadbusybox-666da5e2c6edec979966d16771818b32dcfafe04.tar.gz
merge post-1.3.0 fixes
Diffstat (limited to 'libbb/perror_nomsg_and_die.c')
-rw-r--r--libbb/perror_nomsg_and_die.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c
index e5623c2a9..c416df67c 100644
--- a/libbb/perror_nomsg_and_die.c
+++ b/libbb/perror_nomsg_and_die.c
@@ -7,11 +7,13 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stddef.h>
-#include "libbb.h"
+/* gcc warns about a null format string, therefore we provide
+ * modified definition without "attribute (format)"
+ * instead of including libbb.h */
+//#include "libbb.h"
+extern void bb_perror_msg_and_die(const char *s, ...);
void bb_perror_nomsg_and_die(void)
{
- /* Ignore the gcc warning about a null format string. */
- bb_perror_msg_and_die(NULL);
+ bb_perror_msg_and_die(0);
}