From: Bartosz Golaszewski Date: Fri, 6 Jan 2017 15:30:15 +0000 (+0100) Subject: tools: return from main() rather than exit()ing X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cade170d33f6ca6efd3b113739e24b60233fe232;p=qemu-gpiodev%2Flibgpiod.git tools: return from main() rather than exit()ing Signed-off-by: Bartosz Golaszewski --- diff --git a/gpiodetect.c b/gpiodetect.c index 26e7dab..afb5479 100644 --- a/gpiodetect.c +++ b/gpiodetect.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) switch (optc) { case 'h': print_help(); - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; case '?': die("try %s --help", get_progname()); default: diff --git a/gpiofind.c b/gpiofind.c index 8a276c3..f79e478 100644 --- a/gpiofind.c +++ b/gpiofind.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) switch (optc) { case 'h': print_help(); - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; case '?': die("try %s --help", get_progname()); default: diff --git a/gpioget.c b/gpioget.c index f93daf3..aa210c9 100644 --- a/gpioget.c +++ b/gpioget.c @@ -50,7 +50,7 @@ int main(int argc, char **argv) switch (optc) { case 'h': print_help(); - exit(EXIT_SUCCESS); + return EXIT_SUCCESS; case 'l': active_low = true; break;