diff toys/sha1.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 318fc45fe7bf
children
line wrap: on
line diff
--- a/toys/sha1.c	Thu Nov 29 17:49:50 2007 -0600
+++ b/toys/sha1.c	Thu Nov 29 18:14:37 2007 -0600
@@ -46,7 +46,7 @@
 	int i;
 
 	for (i = 0; i < 20; i++) printf("%02x", this[i]);
-	putchar('\n');
+	xputc('\n');
 }
 
 /* Hash a single 512-bit block. This is the core of the algorithm. */