Apply a patch from Evin Robertson -- new pivot_root applet.
[oweals/busybox.git] / basename.c
index 5b83eef492c47ffaee991fd88dd3b068f8827a11..cba003d70078fb251cb92436a2b32191be28ff79 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Mini basename implementation for busybox
  *
- * Copyright (C) 1999,2000 by Lineo, inc.
+ * Copyright (C) 1999,2000,2001 by Lineo, inc.
  * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -21,8 +21,9 @@
  *
  */
 
-#include "internal.h"
-#include <stdio.h>
+#include "busybox.h"
+#include <stdlib.h>
+#include <string.h>
 
 extern int basename_main(int argc, char **argv)
 {
@@ -45,5 +46,5 @@ extern int basename_main(int argc, char **argv)
                        s[m-n] = '\0';
        }
        printf("%s\n", s);
-       return(TRUE);
+       return EXIT_SUCCESS;
 }