diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 21:38:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 21:38:30 +0000 |
commit | 335b63d8d1876ce4e172ebcc9d64544785682244 (patch) | |
tree | 14183fd728ce51ae10baee70f7d8f72c39d30649 /coreutils | |
parent | 07c394e69b0cfa7cd30e97ffc6edb0d857905f45 (diff) | |
download | busybox-w32-335b63d8d1876ce4e172ebcc9d64544785682244.tar.gz busybox-w32-335b63d8d1876ce4e172ebcc9d64544785682244.tar.bz2 busybox-w32-335b63d8d1876ce4e172ebcc9d64544785682244.zip |
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
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cmp.c | 4 | ||||
-rw-r--r-- | coreutils/echo.c | 2 |
2 files changed, 4 insertions, 2 deletions
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 @@ | |||
23 | 23 | ||
24 | #include "busybox.h" | 24 | #include "busybox.h" |
25 | 25 | ||
26 | static FILE *cmp_xfopen_input(const char * const filename) | 26 | static FILE *cmp_xfopen_input(const char *filename) |
27 | { | 27 | { |
28 | FILE *fp; | 28 | FILE *fp; |
29 | 29 | ||
30 | fp = fopen_or_warn_stdin(filename); | 30 | fp = fopen_or_warn_stdin(filename); |
31 | if (fp) | 31 | if (fp) |
32 | return fp; | 32 | return fp; |
33 | sleep_and_die(); /* We already output an error message. */ | 33 | xfunc_die(); /* We already output an error message. */ |
34 | } | 34 | } |
35 | 35 | ||
36 | static const char fmt_eof[] = "cmp: EOF on %s\n"; | 36 | static const char fmt_eof[] = "cmp: EOF on %s\n"; |
diff --git a/coreutils/echo.c b/coreutils/echo.c index 2ee5002ba..2de19c2e3 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -107,7 +107,9 @@ int bb_echo(char **argv) | |||
107 | putchar(' '); | 107 | putchar(' '); |
108 | } | 108 | } |
109 | 109 | ||
110 | #if ENABLE_FEATURE_FANCY_ECHO | ||
110 | newline_ret: | 111 | newline_ret: |
112 | #endif | ||
111 | if (nflag) { | 113 | if (nflag) { |
112 | putchar('\n'); | 114 | putchar('\n'); |
113 | } | 115 | } |