diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-06-13 18:45:41 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-06-13 18:45:41 +0200 |
commit | 2352079d0c54955f69b9070fc022c5f099906805 (patch) | |
tree | 53cadfa7d7ae2545ae5c6428c1f4e694203f2e57 /src/main.c | |
parent | e83d0567b736bb86515ebd651eb9e2a921dcaab3 (diff) | |
download | polecat-2352079d0c54955f69b9070fc022c5f099906805.tar.gz polecat-2352079d0c54955f69b9070fc022c5f099906805.zip |
rework command group logic to work linear, replace return with EXIT_*
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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, "") |