Update applet define from BB_CP_MV to BB_CP and BB_MV.
[oweals/busybox.git] / basename.c
index 0caae39a4aa6716ad48cae3e85232cd8e91c4346..e98197dd420241c3c356b4a47efaac4e1937e102 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
  *
  */
 
-#include "busybox.h"
+/* getopt not needed */
+
 #include <stdlib.h>
+#include "busybox.h"
 #include <string.h>
 
 extern int basename_main(int argc, char **argv)
@@ -31,7 +33,7 @@ extern int basename_main(int argc, char **argv)
        char *s;
 
        if ((argc < 2) || (**(argv + 1) == '-')) {
-               usage(basename_usage);
+               show_usage();
        }
 
        argv++;