diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-19 20:39:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-19 20:39:27 +0100 |
commit | 6f3c6827221fae6da47a113af4172e8f269bd38c (patch) | |
tree | b0bae70bd662cbc1e88b7347f7194d951b852be2 /src | |
parent | bc812a0a514f80f062d0d5db2a9b1b257080d9dc (diff) |
rename: TALER_config_get_denom->amount
Diffstat (limited to 'src')
-rw-r--r-- | src/exchange-tools/taler-exchange-keyup.c | 40 | ||||
-rw-r--r-- | src/include/taler_util.h | 8 | ||||
-rw-r--r-- | src/util/config.c | 8 |
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", - ¶ms->value)) + TALER_config_get_amount (kcfg, + ct, + "value", + ¶ms->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", - ¶ms->fee_withdraw)) + TALER_config_get_amount (kcfg, + ct, + "fee_withdraw", + ¶ms->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", - ¶ms->fee_deposit)) + TALER_config_get_amount (kcfg, + ct, + "fee_deposit", + ¶ms->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", - ¶ms->fee_refresh)) + TALER_config_get_amount (kcfg, + ct, + "fee_refresh", + ¶ms->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", - ¶ms->fee_refund)) + TALER_config_get_amount (kcfg, + ct, + "fee_refund", + ¶ms->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; |