aboutsummaryrefslogtreecommitdiff
path: root/src/auditor
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
parent0ade45d315831864c5a7ef2bdde7d6efaf602a71 (diff)
use proper default configuration
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-auditor-exchange.c15
-rw-r--r--src/auditor/taler-auditor-sign.c2
2 files changed, 10 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;
}
diff --git a/src/auditor/taler-auditor-sign.c b/src/auditor/taler-auditor-sign.c
index ad2be67aa..0636900ff 100644
--- a/src/auditor/taler-auditor-sign.c
+++ b/src/auditor/taler-auditor-sign.c
@@ -195,6 +195,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 ();
if (GNUNET_SYSERR ==
GNUNET_CONFIGURATION_load (cfg,