aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2024-08-01 21:49:26 +0200
committerChristian Grothoff <grothoff@gnunet.org>2024-08-01 21:49:26 +0200
commit2cf1697e142297fc0d7f62a9b3c518d46272b800 (patch)
tree5d8106ffb5814c07502e7aba10838dc16b80535b /src/lib
parentc1c95e4385eba5257cb796234aaf47d80051b957 (diff)
spelling fixes
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_kyc_check.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/lib/exchange_api_kyc_check.c b/src/lib/exchange_api_kyc_check.c
index 8450242ca..75f238cca 100644
--- a/src/lib/exchange_api_kyc_check.c
+++ b/src/lib/exchange_api_kyc_check.c
@@ -60,17 +60,18 @@ struct TALER_EXCHANGE_KycCheckHandle
static enum GNUNET_GenericReturnValue
-parse_account_status (struct TALER_EXCHANGE_KycCheckHandle *kch,
- const json_t *j,
- struct TALER_EXCHANGE_KycStatus *ks,
- struct TALER_EXCHANGE_AccountKycStatus *aks)
+parse_account_status (
+ struct TALER_EXCHANGE_KycCheckHandle *kch,
+ const json_t *j,
+ struct TALER_EXCHANGE_KycStatus *ks,
+ struct TALER_EXCHANGE_AccountKycStatus *status)
{
const json_t *limits = NULL;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_bool ("aml_review",
- &aks->aml_review),
+ &status->aml_review),
GNUNET_JSON_spec_fixed_auto ("access_token",
- &aks->access_token),
+ &status->access_token),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_array_const ("limits",
&limits),
@@ -89,8 +90,8 @@ parse_account_status (struct TALER_EXCHANGE_KycCheckHandle *kch,
if ( (NULL != limits) &&
(0 != json_array_size (limits)) )
{
- size_t als = json_array_size (limits);
- struct TALER_EXCHANGE_AccountLimit ala[GNUNET_NZL (als)];
+ size_t limit_length = json_array_size (limits);
+ struct TALER_EXCHANGE_AccountLimit ala[GNUNET_NZL (limit_length)];
size_t i;
json_t *limit;
@@ -118,8 +119,8 @@ parse_account_status (struct TALER_EXCHANGE_KycCheckHandle *kch,
return GNUNET_SYSERR;
}
}
- aks->limits = ala;
- aks->limits_length = als;
+ status->limits = ala;
+ status->limits_length = limit_length;
kch->cb (kch->cb_cls,
ks);
}