init: fix logically inverted FEATURE_EXTRA_QUIET check
[oweals/busybox.git] / libbb / herror_msg_and_die.c
index 285b195ef01e4aa7ce43c11aefb531504b070f24..230fe645a0e237e264d6a97c49e13fbbaac58102 100644 (file)
@@ -7,17 +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);
-       exit(bb_default_error_retval);
+       xfunc_die();
 }