diff toys/pwd.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 7c77c6ec17ee
children d4176f3f3835
line wrap: on
line diff
--- a/toys/pwd.c	Thu Nov 29 17:49:50 2007 -0600
+++ b/toys/pwd.c	Thu Nov 29 18:14:37 2007 -0600
@@ -5,12 +5,10 @@
 
 #include "toys.h"
 
-int pwd_main(void)
+void pwd_main(void)
 {
 	char *pwd = xgetcwd();
 
 	xprintf("%s\n", pwd);
 	if (CFG_TOYBOX_FREE) free(pwd);
-
-	return 0;
 }