summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-aggregator.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-07 10:40:01 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-07 10:40:01 +0100
commitb2d8799af1b09b67779df3fd71b84ec59f7e9f7e (patch)
treeb0db537f87cc4d94374877966e87bc09d6a0d571 /src/exchange/taler-exchange-aggregator.c
parent40551fa08e45fcc71f3d260478a2f9910920f27d (diff)
downloadexchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.tar.gz
exchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.tar.bz2
exchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.zip
work on #6679"
Diffstat (limited to 'src/exchange/taler-exchange-aggregator.c')
-rw-r--r--src/exchange/taler-exchange-aggregator.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
index af9b1551..a8448edb 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -1023,26 +1023,26 @@ main (int argc,
"test",
"run in test mode and exit when idle",
&test_mode),
- GNUNET_GETOPT_option_version (VERSION "-" VCS_VERSION),
GNUNET_GETOPT_OPTION_END
};
+ enum GNUNET_GenericReturnValue ret;
if (GNUNET_OK !=
GNUNET_STRINGS_get_utf8_args (argc, argv,
&argc, &argv))
return GR_CMD_LINE_UTF8_ERROR;
- if (GNUNET_OK !=
- GNUNET_PROGRAM_run (argc, argv,
- "taler-exchange-aggregator",
- gettext_noop (
- "background process that aggregates and executes wire transfers"),
- options,
- &run, NULL))
- {
- GNUNET_free_nz ((void *) argv);
- return GR_CMD_LINE_OPTIONS_WRONG;
- }
+ ret = GNUNET_PROGRAM_run (
+ argc, argv,
+ "taler-exchange-aggregator",
+ gettext_noop (
+ "background process that aggregates and executes wire transfers"),
+ options,
+ &run, NULL);
GNUNET_free_nz ((void *) argv);
+ if (GNUNET_SYSERR == ret)
+ return GR_CMD_LINE_OPTIONS_WRONG;
+ if (GNUNET_NO == ret)
+ return 0;
return global_ret;
}