aboutsummaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 4aa1c3000..f1d4486c3 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -414,7 +414,7 @@ void xprint_and_close_file(FILE *file)
414{ 414{
415 // copyfd outputs error messages for us. 415 // copyfd outputs error messages for us.
416 if (bb_copyfd_eof(fileno(file), 1) == -1) 416 if (bb_copyfd_eof(fileno(file), 1) == -1)
417 exit(bb_default_error_retval); 417 exit(xfunc_error_retval);
418 418
419 fclose(file); 419 fclose(file);
420} 420}