From 7b62174d0073ee758fb5fcf8e21ff35cfc766c83 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 25 Jun 2022 21:50:32 +0200 Subject: [PATCH] -fix typos --- src/exchange-tools/taler-exchange-dbinit.c | 2 +- src/exchange/taler-exchange-httpd_metrics.h | 6 +++--- src/exchange/taler-exchange-httpd_refreshes_reveal.c | 2 +- src/exchangedb/common-0001.sql | 4 ++-- src/exchangedb/plugin_exchangedb_postgres.c | 4 ++-- src/extensions/extension_age_restriction.c | 2 +- src/include/taler_crypto_lib.h | 6 +++--- src/include/taler_exchangedb_plugin.h | 4 ++-- src/include/taler_extensions.h | 6 +++--- src/include/taler_util.h | 4 ++-- src/testing/testing_api_cmd_purse_merge.c | 2 +- src/util/tv_age_restriction.c | 4 ++-- src/util/wallet_signatures.c | 4 ++-- 13 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/exchange-tools/taler-exchange-dbinit.c b/src/exchange-tools/taler-exchange-dbinit.c index 7c2c5b661..818373816 100644 --- a/src/exchange-tools/taler-exchange-dbinit.c +++ b/src/exchange-tools/taler-exchange-dbinit.c @@ -252,7 +252,7 @@ main (int argc, GNUNET_GETOPT_option_uint ('R', "reset-shard", "OLD_SHARD_IDX", - "reset a shard database, does not reinitialize i.e. call taler-exchange-dbinit -S afterwards (DANGEROUS: all existsing data is lost!)", + "reset a shard database, does not reinitialize i.e. call taler-exchange-dbinit -S afterwards (DANGEROUS: all existing data is lost!)", &reset_shard_db), GNUNET_GETOPT_option_flag ('f', "force", diff --git a/src/exchange/taler-exchange-httpd_metrics.h b/src/exchange/taler-exchange-httpd_metrics.h index ff4c3f6ca..5943ab86d 100644 --- a/src/exchange/taler-exchange-httpd_metrics.h +++ b/src/exchange/taler-exchange-httpd_metrics.h @@ -101,17 +101,17 @@ extern unsigned long long TEH_METRICS_batch_withdraw_num_coins; extern unsigned long long TEH_METRICS_num_conflict[TEH_MT_REQUEST_COUNT]; /** - * Number of signatures created by the respecitve cipher. + * Number of signatures created by the respective cipher. */ extern unsigned long long TEH_METRICS_num_signatures[TEH_MT_SIGNATURE_COUNT]; /** - * Number of signatures verified by the respecitve cipher. + * Number of signatures verified by the respective cipher. */ extern unsigned long long TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_COUNT]; /** - * Number of key exchnages done with the respective cipher. + * Number of key exchanges done with the respective cipher. */ extern unsigned long long TEH_METRICS_num_keyexchanges[TEH_MT_KEYX_COUNT]; diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c index 9fd9eac46..3b75576ce 100644 --- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c +++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c @@ -111,7 +111,7 @@ struct RevealContext /** * Array of information about fresh coins being revealed. */ - /* FIXME: const would be nicer here, but we initalize + /* FIXME: const would be nicer here, but we initialize the 'alg_values' in the verification routine; suboptimal to be fixed... */ struct TALER_EXCHANGEDB_RefreshRevealedCoin *rrcs; diff --git a/src/exchangedb/common-0001.sql b/src/exchangedb/common-0001.sql index c493af9bd..5ae67edd1 100644 --- a/src/exchangedb/common-0001.sql +++ b/src/exchangedb/common-0001.sql @@ -70,7 +70,7 @@ BEGIN END $$; --- We need a seperate function for this, as we call create_table only once but need to add +-- We need a separate function for this, as we call create_table only once but need to add -- those constraints to each partition which gets created CREATE OR REPLACE FUNCTION add_constraints_to_wire_targets_partition( IN partition_suffix VARCHAR @@ -866,7 +866,7 @@ BEGIN PERFORM create_partitioned_table( 'CREATE TABLE IF NOT EXISTS %I' '(aggregation_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' -- UNIQUE' - ',deposit_serial_id INT8 PRIMARY KEY' -- REFERENCES deposits (deposit_serial_id) ON DELETE CASCADE' -- FIXME chnage to coint_pub + deposit_serial_id for more efficient depost -- or something else ??? + ',deposit_serial_id INT8 PRIMARY KEY' -- REFERENCES deposits (deposit_serial_id) ON DELETE CASCADE' -- FIXME change to coin_pub + deposit_serial_id for more efficient depost -- or something else ??? ',wtid_raw BYTEA NOT NULL' -- CONSTRAINT wire_out_ref REFERENCES wire_out(wtid_raw) ON DELETE CASCADE DEFERRABLE' ') %s ;' ,table_name diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 74424e63e..d3bbb4d6a 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -14970,7 +14970,7 @@ postgres_delete_shard_locks (void *cls) /** * Function called to save the configuration of an extension - * (age-restriction, peer2peer, ...). After succesfull storage of the + * (age-restriction, peer2peer, ...). After successful storage of the * configuration it triggers the corresponding event. * * @param cls the @e cls of this struct with the plugin-specific state @@ -15225,7 +15225,7 @@ postgres_insert_contract ( /** - * Function called to reutrn meta data about a purse by the + * Function called to return meta data about a purse by the * purse public key. * * @param cls the @e cls of this struct with the plugin-specific state diff --git a/src/extensions/extension_age_restriction.c b/src/extensions/extension_age_restriction.c index 0c3eb0d51..9acc5dcbf 100644 --- a/src/extensions/extension_age_restriction.c +++ b/src/extensions/extension_age_restriction.c @@ -136,7 +136,7 @@ TALER_age_mask_to_string ( /* ================================================== * - * Age Restriction TALER_Extension imlementation + * Age Restriction TALER_Extension implementation * * ================================================== */ diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 5b32dd5ca..3d6c20b6f 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -1762,7 +1762,7 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo *coin_public_info, * @param blinded_planchet blinded planchet * @param denom_hash hash of the denomination publick key * @param[out] bch where to write the hash - * @return #GNUNET_OK when successful, #GNUNET_SYSERR if an internal error occured + * @return #GNUNET_OK when successful, #GNUNET_SYSERR if an internal error occurred */ enum GNUNET_GenericReturnValue TALER_coin_ev_hash (const struct TALER_BlindedPlanchet *blinded_planchet, @@ -5120,7 +5120,7 @@ TALER_age_commitment_hash ( * * @param mask The age mask the defines the age groups * @param age The actual age for which an age commitment is generated - * @param seed The seed that goes into the key generation. MUST be choosen uniformly random. + * @param seed The seed that goes into the key generation. MUST be chosen uniformly random. * @param[out] comm_proof The generated age commitment, ->priv and ->pub allocated via GNUNET_malloc() on success * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise */ @@ -5168,7 +5168,7 @@ TALER_age_commitment_attest ( * @param commitment The age commitment that went into the attestation. Only the public keys are needed. * @param age Age (not age group) for which the an attestation should be done * @param attest Signature of the age with the appropriate key from the age commitment for the corresponding age group, if applicaple. - * @return #GNUNET_OK when the attestation was successfull, GNUNET_NO no attestation couldn't be verified, #GNUNET_SYSERR otherwise + * @return #GNUNET_OK when the attestation was successful, #GNUNET_NO no attestation couldn't be verified, #GNUNET_SYSERR otherwise */ enum GNUNET_GenericReturnValue TALER_age_commitment_verify ( diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 6cb9a3a40..42a6795f9 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1420,7 +1420,7 @@ struct TALER_EXCHANGEDB_DepositListEntry struct TALER_DenominationHashP h_denom_pub; /** - * Age commitment hash, if applicable ot the denomination. Should be all + * Age commitment hash, if applicable to the denomination. Should be all * zeroes if age commitment is not applicable to the denonimation. */ struct TALER_AgeCommitmentHash h_age_commitment; @@ -5235,7 +5235,7 @@ struct TALER_EXCHANGEDB_Plugin /** - * Function called to reutrn meta data about a purse by the + * Function called to return meta data about a purse by the * purse public key. * * @param cls the @e cls of this struct with the plugin-specific state diff --git a/src/include/taler_extensions.h b/src/include/taler_extensions.h index 32821e500..82392a3ea 100644 --- a/src/include/taler_extensions.h +++ b/src/include/taler_extensions.h @@ -99,8 +99,8 @@ TALER_extensions_is_json_config ( * he JSON object must be of type ExchangeKeysResponse as described in * https://docs.taler.net/design-documents/006-extensions.html#exchange * - * @param cfg JSON object containting the configuration for all extensions - * @return GNUNET_OK on success, GNUNET_SYSERR if unknown extensions were found + * @param cfg JSON object containing the configuration for all extensions + * @return #GNUNET_OK on success, #GNUNET_SYSERR if unknown extensions were found * or any particular configuration couldn't be parsed. */ enum GNUNET_GenericReturnValue @@ -267,7 +267,7 @@ TALER_extensions_age_restriction_num_groups (); * Parses a JSON object { "age_groups": "a:b:...y:z" }. * * @param root is the json object - * @param[out] mask on succes, will contain the age mask + * @param[out] mask on success, will contain the age mask * @return #GNUNET_OK on success and #GNUNET_SYSERR on failure. */ enum GNUNET_GenericReturnValue diff --git a/src/include/taler_util.h b/src/include/taler_util.h index e5c7b97b5..afc8ebada 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -494,12 +494,12 @@ TALER_yna_to_string (enum TALER_EXCHANGE_YesNoAll yna); #ifdef __APPLE__ /** - * Returns the first occurence of `c` in `s`, or returns the null-byte + * Returns the first occurrence of `c` in `s`, or returns the null-byte * terminating the string if it does not occur. * * @param s the string to search in * @param c the character to search for - * @return char* the first occurence of `c` in `s` + * @return char* the first occurrence of `c` in `s` */ char *strchrnul (const char *s, int c); diff --git a/src/testing/testing_api_cmd_purse_merge.c b/src/testing/testing_api_cmd_purse_merge.c index f2290523f..4d1e8bf4b 100644 --- a/src/testing/testing_api_cmd_purse_merge.c +++ b/src/testing/testing_api_cmd_purse_merge.c @@ -62,7 +62,7 @@ struct PurseMergeState const char *merge_ref; /** - * Refernece to the reserve, or NULL (!). + * Reference to the reserve, or NULL (!). */ const char *reserve_ref; diff --git a/src/util/tv_age_restriction.c b/src/util/tv_age_restriction.c index 0c9ef7739..a2b0a7451 100644 --- a/src/util/tv_age_restriction.c +++ b/src/util/tv_age_restriction.c @@ -162,7 +162,7 @@ generate ( sizeof(seed)); json_object_set (j_top, - "commited_age", + "committed_age", json_integer (age)); ret = TALER_age_restriction_commit (mask, @@ -214,7 +214,7 @@ generate ( "not required: age group is 0"); else if (min_group > age_group) j_reason = json_string ( - "not applicable: commited age too small"); + "not applicable: committed age too small"); else j_reason = GNUNET_JSON_PACK ( GNUNET_JSON_pack_data_auto (NULL, &at)); diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c index 41e272eb0..df6d48b9b 100644 --- a/src/util/wallet_signatures.c +++ b/src/util/wallet_signatures.c @@ -640,7 +640,7 @@ struct TALER_ReserveHistoryRequestPS struct GNUNET_CRYPTO_EccSignaturePurpose purpose; /** - * When did the wallet make the requst. + * When did the wallet make the request. */ struct GNUNET_TIME_TimestampNBO request_timestamp; @@ -708,7 +708,7 @@ struct TALER_ReserveStatusRequestPS struct GNUNET_CRYPTO_EccSignaturePurpose purpose; /** - * When did the wallet make the requst. + * When did the wallet make the request. */ struct GNUNET_TIME_TimestampNBO request_timestamp;