diff options
Diffstat (limited to 'toys/basename.c')
-rw-r--r-- | toys/basename.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/basename.c b/toys/basename.c index da843b86..ee5345e4 100644 --- a/toys/basename.c +++ b/toys/basename.c @@ -6,7 +6,7 @@ #include "toys.h" -int basename_main(void) +void basename_main(void) { char *name = basename(*toys.optargs); char *suffix = toys.optargs[1]; @@ -15,5 +15,4 @@ int basename_main(void) if (end>name && !strcmp(end,suffix)) *end=0; } puts(name); - return 0; } |