projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for tar -z option for uncompressing only
[oweals/busybox.git]
/
basename.c
diff --git
a/basename.c
b/basename.c
index 5678c4433daf04a023da1359701803df4786240e..fcc7d4619ec458fbbddaf88e63605aa385f3d78b 100644
(file)
--- a/
basename.c
+++ b/
basename.c
@@
-21,17
+21,9
@@
*
*/
*
*/
-#include "
internal
.h"
+#include "
busybox
.h"
#include <stdio.h>
#include <stdio.h>
-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;
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);
s[m-n] = '\0';
}
printf("%s\n", s);
- return
(TRUE)
;
+ return
EXIT_SUCCESS
;
}
}