Patch from vodz:
[oweals/busybox.git] / libbb / perror_msg_and_die.c
index 9004925ccc45725e8e839c47dd6ab8a013f5c63d..122f3972b6e36e4ebea3fb0822ce7a0478406b3e 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 perror_msg_and_die(const char *s, ...)
+extern void bb_perror_msg_and_die(const char *s, ...)
 {
        va_list p;
 
        va_start(p, s);
-       vperror_msg(s, p);
+       bb_vperror_msg(s, p);
        va_end(p);
-       exit(EXIT_FAILURE);
+       exit(bb_default_error_retval);
 }