summaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-15 20:08:38 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-15 20:08:38 +0100
commit4322bbf2f1722b4c53114901768772dabdb7e822 (patch)
treee2193282c2d179f2d3bdf32eb7aca7a6ba161f25 /src/auditor
parentd7cfb11fc6a171ece9c233d67ec849ac391bc818 (diff)
downloadexchange-4322bbf2f1722b4c53114901768772dabdb7e822.tar.gz
exchange-4322bbf2f1722b4c53114901768772dabdb7e822.tar.bz2
exchange-4322bbf2f1722b4c53114901768772dabdb7e822.zip
move common logic to parse currency into libtalerutil
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-auditor-httpd.c9
-rw-r--r--src/auditor/taler-auditor.c9
-rw-r--r--src/auditor/taler-wire-auditor.c9
3 files changed, 6 insertions, 21 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c
index ff069f2a..d7d8c4e5 100644
--- a/src/auditor/taler-auditor-httpd.c
+++ b/src/auditor/taler-auditor-httpd.c
@@ -455,14 +455,9 @@ auditor_serve_process_config ()
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (cfg,
- "TALER",
- "CURRENCY",
- &currency))
+ TALER_config_get_currency (cfg,
+ &currency))
{
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "TALER",
- "CURRENCY");
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index aad7cf17..d9d91fcf 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -5291,14 +5291,9 @@ run (void *cls,
TALER_B2S (&master_pub));
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (cfg,
- "taler",
- "CURRENCY",
- &currency))
+ TALER_config_get_currency (cfg,
+ &currency))
{
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "taler",
- "CURRENCY");
global_ret = 1;
return;
}
diff --git a/src/auditor/taler-wire-auditor.c b/src/auditor/taler-wire-auditor.c
index 51c1ba81..fb8e52f7 100644
--- a/src/auditor/taler-wire-auditor.c
+++ b/src/auditor/taler-wire-auditor.c
@@ -2178,14 +2178,9 @@ run (void *cls,
} /* end of -m not given */
if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (cfg,
- "taler",
- "CURRENCY",
- &currency))
+ TALER_config_get_currency (cfg,
+ &currency))
{
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "taler",
- "CURRENCY");
global_ret = 1;
return;
}