diff toys/yes.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 bb6048c923ec
children 30a6db5a95c2
line wrap: on
line diff
--- a/toys/yes.c	Thu Nov 29 17:49:50 2007 -0600
+++ b/toys/yes.c	Thu Nov 29 18:14:37 2007 -0600
@@ -5,7 +5,7 @@
 
 #include "toys.h"
 
-int yes_main(void)
+void yes_main(void)
 {
 	for (;;) {
 		int i;
@@ -16,6 +16,4 @@
 		if (!i) xputc('y');
 		xputc('\n');
 	}
-
-	return 0;
 }