X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=basename.c;h=fcc7d4619ec458fbbddaf88e63605aa385f3d78b;hb=46f44d24fcc25a5d6e13e0453485881bdf147e91;hp=5678c4433daf04a023da1359701803df4786240e;hpb=a0053735dc102e8f876005627bc09be2446e48c0;p=oweals%2Fbusybox.git diff --git a/basename.c b/basename.c index 5678c4433..fcc7d4619 100644 --- a/basename.c +++ b/basename.c @@ -21,17 +21,9 @@ * */ -#include "internal.h" +#include "busybox.h" #include -const char *basename_usage="basename FILE [SUFFIX]\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nStrips directory path and suffixes from FILE.\n" - "If specified, also removes any trailing SUFFIX.\n" -#endif -; - - extern int basename_main(int argc, char **argv) { int m, n; @@ -53,5 +45,5 @@ extern int basename_main(int argc, char **argv) s[m-n] = '\0'; } printf("%s\n", s); - return(TRUE); + return EXIT_SUCCESS; }