summaryrefslogtreecommitdiff
path: root/libbb/perror_nomsg_and_die.c
diff options
context:
space:
mode:
authorDenys Vlasenko2023-06-12 10:19:29 +0200
committerDenys Vlasenko2023-06-12 10:19:29 +0200
commit4bd70463c7e7511aea9de58876f0beacbcec1779 (patch)
treead700e6ec59309e998a27d1cda6730f7b968688b /libbb/perror_nomsg_and_die.c
parent2ca39ffd447ca874fcea933194829717d5573247 (diff)
downloadbusybox-4bd70463c7e7511aea9de58876f0beacbcec1779.zip
busybox-4bd70463c7e7511aea9de58876f0beacbcec1779.tar.gz
libbb: pass "" rather than NULL as format string in _nomsg functions
function old new delta bb_perror_nomsg_and_die 9 10 +1 bb_perror_nomsg 9 10 +1 bb_verror_msg 480 469 -11 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 2/-11) Total: -9 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/perror_nomsg_and_die.c')
-rw-r--r--libbb/perror_nomsg_and_die.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/libbb/perror_nomsg_and_die.c b/libbb/perror_nomsg_and_die.c
index 543ff51..4151e02 100644
--- a/libbb/perror_nomsg_and_die.c
+++ b/libbb/perror_nomsg_and_die.c
@@ -6,17 +6,9 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
+#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"
-#include "platform.h"
-extern void bb_perror_msg_and_die(const char *s, ...) FAST_FUNC;
-
-/* suppress gcc "no previous prototype" warning */
-void FAST_FUNC bb_perror_nomsg_and_die(void);
void FAST_FUNC bb_perror_nomsg_and_die(void)
{
- bb_perror_msg_and_die(0);
+ bb_simple_perror_msg_and_die("");
}