From efda21ca931766eed6cfc49d1b2122c53827d9fc Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 29 Nov 2007 18:14:37 -0600 Subject: Change command main() functions to return void, and exit(toys.exitval) from the toybox infrastructure instead. Eliminates a return call from each command. --- toys/toylist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/toylist.h') diff --git a/toys/toylist.h b/toys/toylist.h index d7f30dcb..074ddbb8 100644 --- a/toys/toylist.h +++ b/toys/toylist.h @@ -9,7 +9,7 @@ // file twice (with different macros) to populate toy_list[]. #ifndef NEWTOY -#define NEWTOY(name, opts, flags) int name##_main(void); +#define NEWTOY(name, opts, flags) void name##_main(void); #define OLDTOY(name, oldname, opts, flags) struct df_data { @@ -90,7 +90,7 @@ extern union toy_union { extern struct toy_list { char *name; - int (*toy_main)(void); + void (*toy_main)(void); char *options; int flags; } toy_list[]; -- cgit v1.2.3