comparison 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
comparison
equal deleted inserted replaced
185:29e2051296fd 186:25447caf1b4b
3 * hello.c - A hello world program. 3 * hello.c - A hello world program.
4 */ 4 */
5 5
6 #include "toys.h" 6 #include "toys.h"
7 7
8 int hello_main(void) 8 void hello_main(void)
9 { 9 {
10 printf("Hello world\n"); 10 printf("Hello world\n");
11 return 0;
12 } 11 }