init: fix logically inverted FEATURE_EXTRA_QUIET check
[oweals/busybox.git] / libbb / herror_msg_and_die.c
index f115c8e0afacd0c98efae7bcd10b2139943d9666..230fe645a0e237e264d6a97c49e13fbbaac58102 100644 (file)
@@ -7,19 +7,14 @@
  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
 
-#include <stdarg.h>
-#include <stdlib.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);
-       bb_vherror_msg(s, p);
+       bb_verror_msg(s, p, hstrerror(h_errno));
        va_end(p);
-       if (die_sleep)
-               sleep(die_sleep);
-       exit(bb_default_error_retval);
+       xfunc_die();
 }