From 335b63d8d1876ce4e172ebcc9d64544785682244 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 10 Apr 2007 21:38:30 +0000 Subject: make a few struct bb_applet members conditional rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig --- coreutils/cmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils/cmp.c') diff --git a/coreutils/cmp.c b/coreutils/cmp.c index c70f8822d..80fab0b90 100644 --- a/coreutils/cmp.c +++ b/coreutils/cmp.c @@ -23,14 +23,14 @@ #include "busybox.h" -static FILE *cmp_xfopen_input(const char * const filename) +static FILE *cmp_xfopen_input(const char *filename) { FILE *fp; fp = fopen_or_warn_stdin(filename); if (fp) return fp; - sleep_and_die(); /* We already output an error message. */ + xfunc_die(); /* We already output an error message. */ } static const char fmt_eof[] = "cmp: EOF on %s\n"; -- cgit v1.2.3