diff options
Diffstat (limited to 'coreutils/dirname.c')
-rw-r--r-- | coreutils/dirname.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index 4ecde31..7c5484b 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c @@ -10,10 +10,10 @@ /* BB_AUDIT SUSv3 compliant */ /* http://www.opengroup.org/onlinepubs/007904975/utilities/dirname.html */ -#include <stdio.h> -#include <stdlib.h> #include "busybox.h" +/* This is a NOFORK applet. Be very careful! */ + int dirname_main(int argc, char **argv); int dirname_main(int argc, char **argv) { @@ -23,5 +23,5 @@ int dirname_main(int argc, char **argv) puts(dirname(argv[1])); - fflush_stdout_and_exit(EXIT_SUCCESS); + return fflush(stdout); } |