aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-15 18:41:17 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-15 18:41:17 +0200
commit84b8886b12d206c47a02061a395160402a0cafb7 (patch)
tree2d8c0f4d6e768fd5ef6e8fedbab80ec0d35ee444 /src
parent6150713fc49bda30b0f3ee7dba93de69d40f3140 (diff)
-fix return value of taler-fakebank-run with -h option
Diffstat (limited to 'src')
-rw-r--r--src/bank-lib/taler-fakebank-run.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/bank-lib/taler-fakebank-run.c b/src/bank-lib/taler-fakebank-run.c
index 866d35111..4e3706071 100644
--- a/src/bank-lib/taler-fakebank-run.c
+++ b/src/bank-lib/taler-fakebank-run.c
@@ -185,14 +185,17 @@ main (int argc,
&num_threads),
GNUNET_GETOPT_OPTION_END
};
-
- if (GNUNET_OK !=
- GNUNET_PROGRAM_run (argc, argv,
- "taler-fakebank-run",
- "Runs the fakebank",
- options,
- &run,
- NULL))
+ enum GNUNET_GenericReturnValue iret;
+
+ iret = GNUNET_PROGRAM_run (argc, argv,
+ "taler-fakebank-run",
+ "Runs the fakebank",
+ options,
+ &run,
+ NULL);
+ if (GNUNET_SYSERR == iret)
return EXIT_INVALIDARGUMENT;
+ if (GNUNET_NO == iret)
+ return EXIT_SUCCESS;
return ret;
}