aboutsummaryrefslogtreecommitdiff
path: root/libbb/perror_nomsg_and_die.c
diff options
context:
space:
mode:
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 @@
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 <stddef.h> 10/* gcc warns about a null format string, therefore we provide
11#include "libbb.h" 11 * modified definition without "attribute (format)"
12 * instead of including libbb.h */
13//#include "libbb.h"
14extern void bb_perror_msg_and_die(const char *s, ...);
12 15
13void bb_perror_nomsg_and_die(void) 16void bb_perror_nomsg_and_die(void)
14{ 17{
15 /* Ignore the gcc warning about a null format string. */ 18 bb_perror_msg_and_die(0);
16 bb_perror_msg_and_die(NULL);
17} 19}