diff options
Diffstat (limited to 'libbb/perror_nomsg_and_die.c')
-rw-r--r-- | libbb/perror_nomsg_and_die.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c index 543ff5178..4151e0246 100644 --- a/libbb/perror_nomsg_and_die.c +++ b/libbb/perror_nomsg_and_die.c | |||
@@ -6,17 +6,9 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #include "libbb.h" | ||
9 | 10 | ||
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" | ||
14 | #include "platform.h" | ||
15 | extern void bb_perror_msg_and_die(const char *s, ...) FAST_FUNC; | ||
16 | |||
17 | /* suppress gcc "no previous prototype" warning */ | ||
18 | void FAST_FUNC bb_perror_nomsg_and_die(void); | ||
19 | void FAST_FUNC bb_perror_nomsg_and_die(void) | 11 | void FAST_FUNC bb_perror_nomsg_and_die(void) |
20 | { | 12 | { |
21 | bb_perror_msg_and_die(0); | 13 | bb_simple_perror_msg_and_die(""); |
22 | } | 14 | } |