comparison toys/sleep.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 93da7cc220e6
children 30a6db5a95c2
comparison
equal deleted inserted replaced
185:29e2051296fd 186:25447caf1b4b
3 * sleep.c - Wait for a number of seconds. 3 * sleep.c - Wait for a number of seconds.
4 */ 4 */
5 5
6 #include "toys.h" 6 #include "toys.h"
7 7
8 int sleep_main(void) 8 void sleep_main(void)
9 { 9 {
10 return sleep(atol(*toys.optargs)); 10 toys.exitval = sleep(atol(*toys.optargs));
11 } 11 }