aboutsummaryrefslogtreecommitdiff
path: root/libbb/perror_nomsg.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.c
parent270c17c0e66ffe9fe0e47e891a583b5c6f8512ef (diff)
downloadbusybox-w32-666da5e2c6edec979966d16771818b32dcfafe04.tar.gz
busybox-w32-666da5e2c6edec979966d16771818b32dcfafe04.tar.bz2
busybox-w32-666da5e2c6edec979966d16771818b32dcfafe04.zip
merge post-1.3.0 fixes
Diffstat (limited to 'libbb/perror_nomsg.c')
-rw-r--r--libbb/perror_nomsg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbb/perror_nomsg.c b/libbb/perror_nomsg.c
index 3aefd5301..8059f9fd8 100644
--- a/libbb/perror_nomsg.c
+++ b/libbb/perror_nomsg.c
@@ -7,10 +7,13 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include "libbb.h" 10/* gcc warns about a null format string, therefore we provide
11 * modified definition without "attribute (format)"
12 * instead of including libbb.h */
13//#include "libbb.h"
14extern void bb_perror_msg(const char *s, ...);
11 15
12void bb_perror_nomsg(void) 16void bb_perror_nomsg(void)
13{ 17{
14 /* Ignore the gcc warning about a null format string. */ 18 bb_perror_msg(0);
15 bb_perror_msg(NULL);
16} 19}