projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init: fix logically inverted FEATURE_EXTRA_QUIET check
[oweals/busybox.git]
/
libbb
/
herror_msg_and_die.c
diff --git
a/libbb/herror_msg_and_die.c
b/libbb/herror_msg_and_die.c
index f62ddd2ead30fff6dfdcfca6e84bab69153cec6a..230fe645a0e237e264d6a97c49e13fbbaac58102 100644
(file)
--- a/
libbb/herror_msg_and_die.c
+++ b/
libbb/herror_msg_and_die.c
@@
-7,19
+7,14
@@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdarg.h>
-#include <stdlib.h>
-
#include "libbb.h"
#include "libbb.h"
-void bb_herror_msg_and_die(const char *s, ...)
+void
FAST_FUNC
bb_herror_msg_and_die(const char *s, ...)
{
va_list p;
va_start(p, s);
{
va_list p;
va_start(p, s);
- bb_v
herror_msg(s, p
);
+ bb_v
error_msg(s, p, hstrerror(h_errno)
);
va_end(p);
va_end(p);
- if (die_sleep)
- sleep(die_sleep);
- exit(xfunc_error_retval);
+ xfunc_die();
}
}