usage.c: remove reference to busybox.h
[oweals/busybox.git] / coreutils / basename.c
index 46f7122c8514b446d472526b4c3ddb58116f8ef2..f59d7a8dee99b7c649cd0c0f6e49be69ee6c2f0b 100644 (file)
  * 3) Save some space by using strcmp().  Calling strncmp() here was silly.
  */
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include "busybox.h"
+#include "libbb.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);
 }