From cade170d33f6ca6efd3b113739e24b60233fe232 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 6 Jan 2017 16:30:15 +0100 Subject: [PATCH] tools: return from main() rather than exit()ing Signed-off-by: Bartosz Golaszewski --- gpiodetect.c | 2 +- gpiofind.c | 2 +- gpioget.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2