diff 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
line wrap: on
line diff
--- a/toys/sleep.c	Thu Nov 29 17:49:50 2007 -0600
+++ b/toys/sleep.c	Thu Nov 29 18:14:37 2007 -0600
@@ -5,7 +5,7 @@
 
 #include "toys.h"
 
-int sleep_main(void)
+void sleep_main(void)
 {
-	return sleep(atol(*toys.optargs));
+	toys.exitval = sleep(atol(*toys.optargs));
 }