commit 2cf1697e142297fc0d7f62a9b3c518d46272b800
parent c1c95e4385eba5257cb796234aaf47d80051b957
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Thu, 1 Aug 2024 21:49:26 +0200
spelling fixes
Diffstat:
6 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/src/exchange/taler-exchange-httpd_common_kyc.c b/src/exchange/taler-exchange-httpd_common_kyc.c
@@ -637,7 +637,7 @@ struct TEH_KycAmlFallback
struct TALER_KYCLOGIC_AmlProgramRunnerHandle *aprh;
/**
- * Task for asynchrnous returning of the result.
+ * Task for asynchronously returning of the result.
*/
struct GNUNET_SCHEDULER_Task *task;
diff --git a/src/exchange/taler-exchange-httpd_kyc-info.c b/src/exchange/taler-exchange-httpd_kyc-info.c
@@ -189,7 +189,7 @@ generate_reply (struct KycPoller *kyp,
uint64_t row_id,
const json_t *jmeasures)
{
- const json_t *mis;
+ const json_t *measures;
bool is_and_combinator = false;
bool verboten;
struct GNUNET_JSON_Specification spec[] = {
@@ -200,7 +200,7 @@ generate_reply (struct KycPoller *kyp,
GNUNET_JSON_spec_bool ("verboten",
&verboten),
GNUNET_JSON_spec_array_const ("measures",
- &mis),
+ &measures),
GNUNET_JSON_spec_end ()
};
enum GNUNET_GenericReturnValue res;
@@ -224,7 +224,7 @@ generate_reply (struct KycPoller *kyp,
}
kris = json_array ();
GNUNET_assert (NULL != kris);
- json_array_foreach ((json_t *) mis, i, mi)
+ json_array_foreach ((json_t *) measures, i, mi)
{
const char *check_name;
const char *prog_name;
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
@@ -4480,13 +4480,13 @@ struct TALER_EXCHANGE_KycProcessClientInformation
{
/**
- * Array with information about availalbe voluntary
+ * Array with information about available voluntary
* checks.
*/
const struct TALER_EXCHANGE_RequirementInformation *requirements;
/**
- * Array with information about availalbe voluntary
+ * Array with information about available voluntary
* checks.
* FIXME: not implemented until **vATTEST**.
*/
diff --git a/src/include/taler_kyclogic_lib.h b/src/include/taler_kyclogic_lib.h
@@ -578,7 +578,7 @@ TALER_KYCLOGIC_get_default_measure (
/**
* Obtain the provider logic for a given set of @a lrs
* and a specific @a kyc_rule from @a lrs that was
- * triggered and the choosen @a measure_name from the
+ * triggered and the chosen @a measure_name from the
* list of measures of that @a kyc_rule. Can also be
* used to obtain the "current" check of a @a lrs if
* no trigger has been hit.
@@ -648,7 +648,7 @@ typedef enum GNUNET_GenericReturnValue
* providing the plugin closure and the @a pd configurations.
* Obtain the provider logic for a given set of @a lrs
* and a specific @a kyc_rule from @a lrs that was
- * triggered and the choosen @a measure_name from the
+ * triggered and the chosen @a measure_name from the
* list of measures of that @a kyc_rule.
*
* @param logic_name name of the logic to match
diff --git a/src/kyclogic/kyclogic_api.c b/src/kyclogic/kyclogic_api.c
@@ -1432,7 +1432,7 @@ add_check (const struct GNUNET_CONFIGURATION_Handle *cfg,
"SKIP"))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "The kyc-check-skip section must not exist, 'skip' is reserved name for a build-in check\n");
+ "The kyc-check-skip section must not exist, 'skip' is reserved name for a built-in check\n");
return GNUNET_SYSERR;
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
diff --git 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);
}