summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-06 10:11:15 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-06 10:11:15 +0100
commit5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5 (patch)
tree972f236232a129d97eaebf70436d59e096fb14af /src/exchange
parenta79b67c726e7a2d2ef44102e883b98423d129fbd (diff)
downloadexchange-5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5.tar.gz
exchange-5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5.tar.bz2
exchange-5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5.zip
fix return value from main() when run with -h/-v
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 98120a220..aa477eb2b 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -1302,11 +1302,13 @@ main (int argc,
int fh = -1;
enum TALER_MHD_GlobalOptions go;
- if (0 >=
- GNUNET_GETOPT_run ("taler-exchange-httpd",
- options,
- argc, argv))
+ ret = GNUNET_GETOPT_run ("taler-exchange-httpd",
+ options,
+ argc, argv);
+ if (ret < 0)
return 1;
+ if (0 == ret)
+ return 0;
if (0 == num_threads)
{
cpu_set_t mask;