summaryrefslogtreecommitdiff
path: root/src/auditor/taler-auditor-exchange.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-30 17:44:58 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-30 17:44:58 +0200
commite9f43adb5b6d580abb4cf10dd08d92d0714cf9a8 (patch)
tree51a483c9539ea26f6731d499957ae20223baec1d /src/auditor/taler-auditor-exchange.c
parent0ade45d315831864c5a7ef2bdde7d6efaf602a71 (diff)
downloadexchange-e9f43adb5b6d580abb4cf10dd08d92d0714cf9a8.tar.gz
exchange-e9f43adb5b6d580abb4cf10dd08d92d0714cf9a8.tar.bz2
exchange-e9f43adb5b6d580abb4cf10dd08d92d0714cf9a8.zip
use proper default configuration
Diffstat (limited to 'src/auditor/taler-auditor-exchange.c')
-rw-r--r--src/auditor/taler-auditor-exchange.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/auditor/taler-auditor-exchange.c b/src/auditor/taler-auditor-exchange.c
index 6ea4f713a..04c13fd0d 100644
--- a/src/auditor/taler-auditor-exchange.c
+++ b/src/auditor/taler-auditor-exchange.c
@@ -74,10 +74,10 @@ main (int argc,
"public key of the exchange (Crockford base32 encoded)",
&master_public_key)),
GNUNET_GETOPT_option_string ('u',
- "exchange-url",
- "URL",
- "base URL of the exchange",
- &exchange_url),
+ "exchange-url",
+ "URL",
+ "base URL of the exchange",
+ &exchange_url),
GNUNET_GETOPT_option_flag ('r',
"remove",
"remove the exchange's key (default is to add)",
@@ -95,6 +95,8 @@ main (int argc,
options,
argc, argv) <= 0)
return 1;
+ if (NULL == cfgfile)
+ cfgfile = GNUNET_strdup (GNUNET_OS_project_data_get ()->user_config_file);
cfg = GNUNET_CONFIGURATION_create ();
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -166,7 +168,7 @@ main (int argc,
if (NULL == session)
{
fprintf (stderr,
- "Failed to initialize database session\n");
+ "Failed to initialize database session\n");
TALER_AUDITORDB_plugin_unload (adb);
return 3;
}
@@ -195,8 +197,7 @@ main (int argc,
if (0 == qs)
{
fprintf (stderr,
- "Did not update auditor DB: value existed\n",
- qs);
+ "Did not update auditor DB: value existed\n");
TALER_AUDITORDB_plugin_unload (adb);
return 4;
}