summaryrefslogtreecommitdiff
path: root/src/auditor
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/auditor
parent40551fa08e45fcc71f3d260478a2f9910920f27d (diff)
downloadexchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.tar.gz
exchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.tar.bz2
exchange-b2d8799af1b09b67779df3fd71b84ec59f7e9f7e.zip
work on #6679"
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-helper-auditor-aggregation.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c
index 5a144ddf..830773c7 100644
--- a/src/auditor/taler-helper-auditor-aggregation.c
+++ b/src/auditor/taler-helper-auditor-aggregation.c
@@ -1480,24 +1480,33 @@ main (int argc,
"timetravel"),
GNUNET_GETOPT_OPTION_END
};
+ enum GNUNET_GenericReturnValue ret;
/* force linker to link against libtalerutil; if we do
not do this, the linker may "optimize" libtalerutil
away and skip #TALER_OS_init(), which we do need */
(void) TALER_project_data_default ();
+ if (GNUNET_OK !=
+ GNUNET_STRINGS_get_utf8_args (argc, argv,
+ &argc, &argv))
+ return 4;
GNUNET_assert (GNUNET_OK ==
GNUNET_log_setup ("taler-helper-auditor-aggregation",
"MESSAGE",
NULL));
- if (GNUNET_OK !=
- GNUNET_PROGRAM_run (argc,
- argv,
- "taler-helper-auditor-aggregation",
- "Audit Taler exchange aggregation activity",
- options,
- &run,
- NULL))
- return 1;
+ ret = GNUNET_PROGRAM_run (
+ argc,
+ argv,
+ "taler-helper-auditor-aggregation",
+ gettext_noop ("Audit Taler exchange aggregation activity"),
+ options,
+ &run,
+ NULL);
+ GNUNET_free_nz ((void *) argv);
+ if (GNUNET_SYSERR == ret)
+ return 3;
+ if (GNUNET_NO == ret)
+ return 0;
return global_ret;
}