rename bb_default_error_retval -> xfunc_error_retval

This commit is contained in:
Denis Vlasenko 2006-10-03 20:28:06 +00:00
parent b6332248ca
commit 40920825d5
17 changed files with 19 additions and 19 deletions

View file

@ -16,4 +16,4 @@
#include <stdlib.h>
#include "libbb.h"
int bb_default_error_retval = EXIT_FAILURE;
int xfunc_error_retval = EXIT_FAILURE;

View file

@ -24,5 +24,5 @@ void bb_error_msg_and_die(const char *s, ...)
va_end(p);
if (die_sleep)
sleep(die_sleep);
exit(bb_default_error_retval);
exit(xfunc_error_retval);
}

View file

@ -18,7 +18,7 @@
void bb_fflush_stdout_and_exit(int retval)
{
if (fflush(stdout)) {
retval = bb_default_error_retval;
retval = xfunc_error_retval;
}
if (die_sleep)
sleep(die_sleep);

View file

@ -21,5 +21,5 @@ void bb_herror_msg_and_die(const char *s, ...)
va_end(p);
if (die_sleep)
sleep(die_sleep);
exit(bb_default_error_retval);
exit(xfunc_error_retval);
}

View file

@ -22,5 +22,5 @@ void bb_perror_msg_and_die(const char *s, ...)
va_end(p);
if (die_sleep)
sleep(die_sleep);
exit(bb_default_error_retval);
exit(xfunc_error_retval);
}

View file

@ -414,7 +414,7 @@ void xprint_and_close_file(FILE *file)
{
// copyfd outputs error messages for us.
if (bb_copyfd_eof(fileno(file), 1) == -1)
exit(bb_default_error_retval);
exit(xfunc_error_retval);
fclose(file);
}