rename: TALER_config_get_denom->amount

This commit is contained in:
Christian Grothoff 2020-01-19 20:39:27 +01:00
parent bc812a0a51
commit 6f3c682722
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 28 additions and 28 deletions

View File

@ -676,10 +676,10 @@ get_cointype_params (const char *ct,
} }
params->rsa_keysize = (unsigned int) rsa_keysize; params->rsa_keysize = (unsigned int) rsa_keysize;
if (GNUNET_OK != if (GNUNET_OK !=
TALER_config_get_denom (kcfg, TALER_config_get_amount (kcfg,
ct, ct,
"value", "value",
&params->value)) &params->value))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct, ct,
@ -687,10 +687,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (GNUNET_OK != if (GNUNET_OK !=
TALER_config_get_denom (kcfg, TALER_config_get_amount (kcfg,
ct, ct,
"fee_withdraw", "fee_withdraw",
&params->fee_withdraw)) &params->fee_withdraw))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct, ct,
@ -698,10 +698,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (GNUNET_OK != if (GNUNET_OK !=
TALER_config_get_denom (kcfg, TALER_config_get_amount (kcfg,
ct, ct,
"fee_deposit", "fee_deposit",
&params->fee_deposit)) &params->fee_deposit))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct, ct,
@ -709,10 +709,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (GNUNET_OK != if (GNUNET_OK !=
TALER_config_get_denom (kcfg, TALER_config_get_amount (kcfg,
ct, ct,
"fee_refresh", "fee_refresh",
&params->fee_refresh)) &params->fee_refresh))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct, ct,
@ -720,10 +720,10 @@ get_cointype_params (const char *ct,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (GNUNET_OK != if (GNUNET_OK !=
TALER_config_get_denom (kcfg, TALER_config_get_amount (kcfg,
ct, ct,
"fee_refund", "fee_refund",
&params->fee_refund)) &params->fee_refund))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
ct, ct,

View File

@ -115,10 +115,10 @@ TALER_b2s (const void *buf,
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/ */
int int
TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg, TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *section, const char *section,
const char *option, const char *option,
struct TALER_Amount *denom); struct TALER_Amount *denom);
/** /**

View File

@ -33,10 +33,10 @@
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/ */
int int
TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg, TALER_config_get_amount (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *section, const char *section,
const char *option, const char *option,
struct TALER_Amount *denom) struct TALER_Amount *denom)
{ {
char *str; char *str;