exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 84b8886b12d206c47a02061a395160402a0cafb7
parent 6150713fc49bda30b0f3ee7dba93de69d40f3140
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 15 May 2022 18:41:17 +0200

-fix return value of taler-fakebank-run with -h option

Diffstat:
Msrc/bank-lib/taler-fakebank-run.c | 19+++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

diff --git 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; }