From 2352079d0c54955f69b9070fc022c5f099906805 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sun, 13 Jun 2021 18:45:41 +0200 Subject: rework command group logic to work linear, replace return with EXIT_* --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d865ecf..653a1b3 100644 --- a/src/main.c +++ b/src/main.c @@ -57,7 +57,7 @@ COMMAND_GROUP(main) atexit(free_nargv); } #endif - COMMAND_GROUP_BODY(main, COMMANDS, FLAGS) + COMMAND_GROUP_BODY(main) } COMMAND(main, env) @@ -74,14 +74,14 @@ COMMAND(main, env) printf("data dir\t\t%s\n", buffer); - return 0; + return EXIT_SUCCESS; } COMMAND(main, version) { puts(VERSION); - return 0; + return EXIT_SUCCESS; } COMMAND_HELP(main, "") -- cgit v1.2.3