-fix typos

This commit is contained in:
Christian Grothoff 2022-06-25 21:50:32 +02:00
parent 76ad5baec7
commit 3b9e9eed11
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
14 changed files with 26 additions and 26 deletions

View File

@ -252,7 +252,7 @@ main (int argc,
GNUNET_GETOPT_option_uint ('R', GNUNET_GETOPT_option_uint ('R',
"reset-shard", "reset-shard",
"OLD_SHARD_IDX", "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), &reset_shard_db),
GNUNET_GETOPT_option_flag ('f', GNUNET_GETOPT_option_flag ('f',
"force", "force",

View File

@ -2261,7 +2261,7 @@ finish_keys_response (struct TEH_KeyStateHandle *ksh)
/* /*
* Build up the running hash of all denominations in this group * Build up the running hash of all denominations in this group
* TODO: FIXME-oec: this is cipher and age_restriction dependend?! * TODO: FIXME-oec: this is cipher and age_restriction dependent?!
*/ */
GNUNET_CRYPTO_hash_context_read (group->hash_context, GNUNET_CRYPTO_hash_context_read (group->hash_context,
&dk->h_denom_pub, &dk->h_denom_pub,

View File

@ -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]; 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]; 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]; 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]; extern unsigned long long TEH_METRICS_num_keyexchanges[TEH_MT_KEYX_COUNT];

View File

@ -111,7 +111,7 @@ struct RevealContext
/** /**
* Array of information about fresh coins being revealed. * 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 the 'alg_values' in the verification
routine; suboptimal to be fixed... */ routine; suboptimal to be fixed... */
struct TALER_EXCHANGEDB_RefreshRevealedCoin *rrcs; struct TALER_EXCHANGEDB_RefreshRevealedCoin *rrcs;

View File

@ -70,7 +70,7 @@ BEGIN
END 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 -- those constraints to each partition which gets created
CREATE OR REPLACE FUNCTION add_constraints_to_wire_targets_partition( CREATE OR REPLACE FUNCTION add_constraints_to_wire_targets_partition(
IN partition_suffix VARCHAR IN partition_suffix VARCHAR
@ -866,7 +866,7 @@ BEGIN
PERFORM create_partitioned_table( PERFORM create_partitioned_table(
'CREATE TABLE IF NOT EXISTS %I' 'CREATE TABLE IF NOT EXISTS %I'
'(aggregation_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' -- UNIQUE' '(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' ',wtid_raw BYTEA NOT NULL' -- CONSTRAINT wire_out_ref REFERENCES wire_out(wtid_raw) ON DELETE CASCADE DEFERRABLE'
') %s ;' ') %s ;'
,table_name ,table_name

View File

@ -14970,7 +14970,7 @@ postgres_delete_shard_locks (void *cls)
/** /**
* Function called to save the configuration of an extension * 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. * configuration it triggers the corresponding event.
* *
* @param cls the @e cls of this struct with the plugin-specific state * @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. * purse public key.
* *
* @param cls the @e cls of this struct with the plugin-specific state * @param cls the @e cls of this struct with the plugin-specific state

View File

@ -136,7 +136,7 @@ TALER_age_mask_to_string (
/* ================================================== /* ==================================================
* *
* Age Restriction TALER_Extension imlementation * Age Restriction TALER_Extension implementation
* *
* ================================================== * ==================================================
*/ */

View File

@ -1762,7 +1762,7 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo *coin_public_info,
* @param blinded_planchet blinded planchet * @param blinded_planchet blinded planchet
* @param denom_hash hash of the denomination publick key * @param denom_hash hash of the denomination publick key
* @param[out] bch where to write the hash * @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 enum GNUNET_GenericReturnValue
TALER_coin_ev_hash (const struct TALER_BlindedPlanchet *blinded_planchet, 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 mask The age mask the defines the age groups
* @param age The actual age for which an age commitment is generated * @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 * @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 * @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 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 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. * @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 enum GNUNET_GenericReturnValue
TALER_age_commitment_verify ( TALER_age_commitment_verify (

View File

@ -1420,7 +1420,7 @@ struct TALER_EXCHANGEDB_DepositListEntry
struct TALER_DenominationHashP h_denom_pub; 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. * zeroes if age commitment is not applicable to the denonimation.
*/ */
struct TALER_AgeCommitmentHash h_age_commitment; 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. * purse public key.
* *
* @param cls the @e cls of this struct with the plugin-specific state * @param cls the @e cls of this struct with the plugin-specific state

View File

@ -99,8 +99,8 @@ TALER_extensions_is_json_config (
* he JSON object must be of type ExchangeKeysResponse as described in * he JSON object must be of type ExchangeKeysResponse as described in
* https://docs.taler.net/design-documents/006-extensions.html#exchange * https://docs.taler.net/design-documents/006-extensions.html#exchange
* *
* @param cfg JSON object containting the configuration for all extensions * @param cfg JSON object containing the configuration for all extensions
* @return GNUNET_OK on success, GNUNET_SYSERR if unknown extensions were found * @return #GNUNET_OK on success, #GNUNET_SYSERR if unknown extensions were found
* or any particular configuration couldn't be parsed. * or any particular configuration couldn't be parsed.
*/ */
enum GNUNET_GenericReturnValue enum GNUNET_GenericReturnValue
@ -267,7 +267,7 @@ TALER_extensions_age_restriction_num_groups ();
* Parses a JSON object { "age_groups": "a:b:...y:z" }. * Parses a JSON object { "age_groups": "a:b:...y:z" }.
* *
* @param root is the json object * @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. * @return #GNUNET_OK on success and #GNUNET_SYSERR on failure.
*/ */
enum GNUNET_GenericReturnValue enum GNUNET_GenericReturnValue

View File

@ -494,12 +494,12 @@ TALER_yna_to_string (enum TALER_EXCHANGE_YesNoAll yna);
#ifdef __APPLE__ #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. * terminating the string if it does not occur.
* *
* @param s the string to search in * @param s the string to search in
* @param c the character to search for * @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); char *strchrnul (const char *s, int c);

View File

@ -62,7 +62,7 @@ struct PurseMergeState
const char *merge_ref; const char *merge_ref;
/** /**
* Refernece to the reserve, or NULL (!). * Reference to the reserve, or NULL (!).
*/ */
const char *reserve_ref; const char *reserve_ref;

View File

@ -162,7 +162,7 @@ generate (
sizeof(seed)); sizeof(seed));
json_object_set (j_top, json_object_set (j_top,
"commited_age", "committed_age",
json_integer (age)); json_integer (age));
ret = TALER_age_restriction_commit (mask, ret = TALER_age_restriction_commit (mask,
@ -214,7 +214,7 @@ generate (
"not required: age group is 0"); "not required: age group is 0");
else if (min_group > age_group) else if (min_group > age_group)
j_reason = json_string ( j_reason = json_string (
"not applicable: commited age too small"); "not applicable: committed age too small");
else else
j_reason = GNUNET_JSON_PACK ( j_reason = GNUNET_JSON_PACK (
GNUNET_JSON_pack_data_auto (NULL, &at)); GNUNET_JSON_pack_data_auto (NULL, &at));

View File

@ -640,7 +640,7 @@ struct TALER_ReserveHistoryRequestPS
struct GNUNET_CRYPTO_EccSignaturePurpose purpose; 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; struct GNUNET_TIME_TimestampNBO request_timestamp;
@ -708,7 +708,7 @@ struct TALER_ReserveStatusRequestPS
struct GNUNET_CRYPTO_EccSignaturePurpose purpose; 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; struct GNUNET_TIME_TimestampNBO request_timestamp;