diff toys/hello.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 d87d8a056295
children 30a6db5a95c2
line wrap: on
line diff
--- a/toys/hello.c	Thu Nov 29 17:49:50 2007 -0600
+++ b/toys/hello.c	Thu Nov 29 18:14:37 2007 -0600
@@ -5,8 +5,7 @@
 
 #include "toys.h"
 
-int hello_main(void)
+void hello_main(void)
 {
 	printf("Hello world\n");
-	return 0;
 }