| commit | efda21ca931766eed6cfc49d1b2122c53827d9fc | [log] [tgz] |
|---|---|---|
| author | Rob Landley <rob@landley.net> | Thu Nov 29 18:14:37 2007 -0600 |
| committer | Rob Landley <rob@landley.net> | Thu Nov 29 18:14:37 2007 -0600 |
| tree | 16453d708a1b0fc6b325ada99bbe72cbaab7148b | |
| parent | 7634b55f27ad483ec634ba9defac93872e3a329f [diff] [blame] |
Change command main() functions to return void, and exit(toys.exitval) from the toybox infrastructure instead. Eliminates a return call from each command.
diff --git a/toys/pwd.c b/toys/pwd.c index a6fdd44..f5f04e8 100644 --- a/toys/pwd.c +++ b/toys/pwd.c
@@ -5,12 +5,10 @@ #include "toys.h" -int pwd_main(void) +void pwd_main(void) { char *pwd = xgetcwd(); xprintf("%s\n", pwd); if (CFG_TOYBOX_FREE) free(pwd); - - return 0; }