summaryrefslogtreecommitdiff
path: root/shairport.c
diff options
context:
space:
mode:
authorHenrik Nilsson <henrik.nilsson@bytequest.se>2019-08-01 09:59:17 +0200
committerHenrik Nilsson <henrik.nilsson@bytequest.se>2019-08-01 10:16:37 +0200
commit14de9e27ab863ef0381fb84d4cb269e4c1d90d79 (patch)
tree6cbcb62a732244af8560bf4ea9a3973859e21e40 /shairport.c
parent2e7e5b6856260eedb1f63f80f725da46793cee28 (diff)
Return success on version and help argument
It's not a failure to print version or usage, so use return code success.
Diffstat (limited to 'shairport.c')
-rw-r--r--shairport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shairport.c b/shairport.c
index cc1a790..d458516 100644
--- a/shairport.c
+++ b/shairport.c
@@ -1366,13 +1366,13 @@ int main(int argc, char **argv) {
/* Check if we are called with -V or --version parameter */
if (argc >= 2 && ((strcmp(argv[1], "-V") == 0) || (strcmp(argv[1], "--version") == 0))) {
print_version();
- exit(EXIT_FAILURE);
+ exit(EXIT_SUCCESS);
}
/* Check if we are called with -h or --help parameter */
if (argc >= 2 && ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0))) {
usage(argv[0]);
- exit(EXIT_FAILURE);
+ exit(EXIT_SUCCESS);
}
#ifdef CONFIG_LIBDAEMON