summaryrefslogtreecommitdiff
path: root/coreutils/basename.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/basename.c')
-rw-r--r--coreutils/basename.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c
index 46f7122..f4307d6 100644
--- a/coreutils/basename.c
+++ b/coreutils/basename.c
@@ -20,11 +20,10 @@
* 3) Save some space by using strcmp(). Calling strncmp() here was silly.
*/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include "busybox.h"
+/* This is a NOFORK applet. Be very careful! */
+
int basename_main(int argc, char **argv);
int basename_main(int argc, char **argv)
{
@@ -47,5 +46,5 @@ int basename_main(int argc, char **argv)
puts(s);
- fflush_stdout_and_exit(EXIT_SUCCESS);
+ return fflush(stdout);
}