aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/exchange-tools/taler-exchange-keyup.c40
-rw-r--r--src/include/taler_util.h8
-rw-r--r--src/util/config.c8
3 files changed, 28 insertions, 28 deletions
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c
index ae7d37d33..71ccace91 100644
--- a/src/exchange-tools/taler-exchange-keyup.c
+++ b/src/exchange-tools/taler-exchange-keyup.c
@@ -676,10 +676,10 @@ get_cointype_params (const char *ct,
}
params->rsa_keysize = (unsigned int) rsa_keysize;
if (GNUNET_OK !=
- TALER_config_get_denom (kcfg,
- ct,
- "value",
- &params->value))
+ TALER_config_get_amount (kcfg,
+ ct,
+ "value",
+ &params->value))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@@ -687,10 +687,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
- TALER_config_get_denom (kcfg,
- ct,
- "fee_withdraw",
- &params->fee_withdraw))
+ TALER_config_get_amount (kcfg,
+ ct,
+ "fee_withdraw",
+ &params->fee_withdraw))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@@ -698,10 +698,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
- TALER_config_get_denom (kcfg,
- ct,
- "fee_deposit",
- &params->fee_deposit))
+ TALER_config_get_amount (kcfg,
+ ct,
+ "fee_deposit",
+ &params->fee_deposit))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@@ -709,10 +709,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
- TALER_config_get_denom (kcfg,
- ct,
- "fee_refresh",
- &params->fee_refresh))
+ TALER_config_get_amount (kcfg,
+ ct,
+ "fee_refresh",
+ &params->fee_refresh))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
@@ -720,10 +720,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
- TALER_config_get_denom (kcfg,
- ct,
- "fee_refund",
- &params->fee_refund))
+ TALER_config_get_amount (kcfg,
+ ct,
+ "fee_refund",
+ &params->fee_refund))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct,
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 3f5935728..f64ab342e 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -115,10 +115,10 @@ TALER_b2s (const void *buf,
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
-TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *section,
- const char *option,
- struct TALER_Amount *denom);
+TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
+ const char *section,
+ const char *option,
+ struct TALER_Amount *denom);
/**
diff --git a/src/util/config.c b/src/util/config.c
index e65a144ab..ee74fe8ff 100644
--- a/src/util/config.c
+++ b/src/util/config.c
@@ -33,10 +33,10 @@
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
-TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *section,
- const char *option,
- struct TALER_Amount *denom)
+TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
+ const char *section,
+ const char *option,
+ struct TALER_Amount *denom)
{
char *str;