Mercurial > hg > toybox
comparison toys/dirname.c @ 186:25447caf1b4b
Change command main() functions to return void, and exit(toys.exitval) from
the toybox infrastructure instead. Eliminates a return call from each command.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 29 Nov 2007 18:14:37 -0600 |
parents | 0e94f5f14f08 |
children | d4176f3f3835 |
comparison
equal
deleted
inserted
replaced
185:29e2051296fd | 186:25447caf1b4b |
---|---|
5 */ | 5 */ |
6 | 6 |
7 #include "toys.h" | 7 #include "toys.h" |
8 #include <libgen.h> | 8 #include <libgen.h> |
9 | 9 |
10 int dirname_main(void) | 10 void dirname_main(void) |
11 { | 11 { |
12 puts(dirname(*toys.optargs)); | 12 puts(dirname(*toys.optargs)); |
13 return 0; | |
14 } | 13 } |