diff toys/mkfifo.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 14fa82969ea3
children d4176f3f3835
line wrap: on
line diff
--- a/toys/mkfifo.c	Thu Nov 29 17:49:50 2007 -0600
+++ b/toys/mkfifo.c	Thu Nov 29 18:14:37 2007 -0600
@@ -7,7 +7,7 @@
 
 #include "toys.h"
 
-int mkfifo_main(void)
+void mkfifo_main(void)
 {
 	char *arg;
 	int i;
@@ -24,6 +24,4 @@
 	for (i = 0; (arg = toys.optargs[i]); i++)
 		if (mkfifo(arg, mode))
 			perror_exit(arg);
-
-	return 0;
 }