Patch from vodz:
[oweals/busybox.git] / libbb / error_msg_and_die.c
index 67a79c375c00a4ff92e8e3bb9b138902ee083dff..433f29d0f54ec626ca0dd35f9842f4416bbbf365 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Utility routines.
  *
- * Copyright (C) 1999,2000,2001 by Erik Andersen <andersee@debian.org>
+ * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include <stdlib.h>
 #include "libbb.h"
 
-extern void error_msg_and_die(const char *s, ...)
+extern void bb_error_msg_and_die(const char *s, ...)
 {
        va_list p;
 
        va_start(p, s);
-       verror_msg(s, p);
+       bb_verror_msg(s, p);
        va_end(p);
        putc('\n', stderr);
-       exit(EXIT_FAILURE);
+       exit(bb_default_error_retval);
 }