projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updates from both Vladimir and Larry
[oweals/busybox.git]
/
basename.c
diff --git
a/basename.c
b/basename.c
index da0b7ecc32adad5dfada4f184e9090ace7d6ee5c..b83f387c29c70725fb69b22efee4e9a38d6133b7 100644
(file)
--- a/
basename.c
+++ b/
basename.c
@@
-21,6
+21,8
@@
*
*/
+/* getopt not needed */
+
#include <stdlib.h>
#include "busybox.h"
#include <string.h>
@@
-45,6
+47,6
@@
extern int basename_main(int argc, char **argv)
if (m>=n && strncmp(s+m-n, *argv, n)==0)
s[m-n] = '\0';
}
- p
rintf("%s\n",
s);
+ p
uts(
s);
return EXIT_SUCCESS;
}