Skip to content

Commit 019b106

Browse files
authored
chore: cleanup cleanup spelling and function declarations (#815)
1 parent b4a415e commit 019b106

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

examples/kms_discovery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int main(int argc, char **argv) {
172172

173173
/* This keyring is guaranteed to only call KMS to attempt decryptions
174174
* in eu-central-1, and it will only attempt to do so when it sees that
175-
* the message has beeen encrypted by this specific CMK.
175+
* the message has been encrypted by this specific CMK.
176176
*/
177177
decryption_keyrings.push_back(Aws::Cryptosdk::KmsKeyring::Builder().Build(key_arn_eu_central_1));
178178

examples/string.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ int main(int argc, char **argv) {
199199
return ret;
200200
}
201201

202-
/* We need to intialize the AWS SDK for C++ when we use the C++ KMS keyring. */
202+
/* We need to initialize the AWS SDK for C++ when we use the C++ KMS keyring. */
203203
Aws::SDKOptions options;
204204
Aws::InitAPI(options);
205205

examples/string_alternate_algorithm_suite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ int main(int argc, char **argv) {
219219
return ret;
220220
}
221221

222-
/* We need to intialize the AWS SDK for C++ when we use the C++ KMS keyring. */
222+
/* We need to initialize the AWS SDK for C++ when we use the C++ KMS keyring. */
223223
Aws::SDKOptions options;
224224
Aws::InitAPI(options);
225225

examples/string_legacy_compatibility.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ int main(int argc, char **argv) {
204204
return ret;
205205
}
206206

207-
/* We need to intialize the AWS SDK for C++ when we use the C++ KMS keyring. */
207+
/* We need to initialize the AWS SDK for C++ when we use the C++ KMS keyring. */
208208
Aws::SDKOptions options;
209209
Aws::InitAPI(options);
210210

include/aws/cryptosdk/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum aws_cryptosdk_err {
6262
* Implicitly registers error strings for aws-c-common as well.
6363
*/
6464
AWS_CRYPTOSDK_API
65-
void aws_cryptosdk_load_error_strings();
65+
void aws_cryptosdk_load_error_strings(void);
6666

6767
#ifdef __cplusplus
6868
}

source/cipher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static int evp_gcm_encrypt_final(const struct aws_cryptosdk_alg_properties *prop
470470
return AWS_ERROR_SUCCESS;
471471
}
472472

473-
static inline void flush_openssl_errors() {
473+
static inline void flush_openssl_errors(void) {
474474
while (ERR_get_error() != 0) {
475475
}
476476
}

source/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ static const struct aws_error_info error_info[] = {
3939
static const struct aws_error_info_list error_info_list = { .error_list = error_info,
4040
.count = sizeof(error_info) / sizeof(error_info[0]) };
4141

42-
void aws_cryptosdk_load_error_strings() {
42+
void aws_cryptosdk_load_error_strings(void) {
4343
aws_register_error_info(&error_info_list);
4444
}

tests/integration/t_local_cache_threading.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ struct rand_state {
8181
#define RNG_GENERATOR 16807
8282
#define RNG_MAX (RNG_MODULUS - 1)
8383

84-
static unsigned long threadid_get_callback() {
85-
return aws_thread_current_thread_id();
84+
static unsigned long threadid_get_callback(void) {
85+
return (unsigned long)aws_thread_current_thread_id();
8686
}
8787

8888
static struct aws_mutex *mutex_array = NULL;

0 commit comments

Comments
 (0)