diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-10-08 21:05:14 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-10-09 17:33:37 +0000 |
commit | 605dfe882c52bfad4dee9678a69e4b816d93431d (patch) | |
tree | 10432adc5d3716cb28b833c6e156218b67c23494 /auto_tests/file_saving_test.c | |
parent | 77e025fae48a4f9cf6cf19a359b6c423545f3cc7 (diff) |
Consistently use camel case enum names.
Including in tests and implementation files.
Diffstat (limited to 'auto_tests/file_saving_test.c')
-rw-r--r-- | auto_tests/file_saving_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/file_saving_test.c b/auto_tests/file_saving_test.c index 1a345b23..19a21dfe 100644 --- a/auto_tests/file_saving_test.c +++ b/auto_tests/file_saving_test.c | |||
@@ -61,7 +61,7 @@ static void save_data_encrypted(void) | |||
61 | size += TOX_PASS_ENCRYPTION_EXTRA_LENGTH; | 61 | size += TOX_PASS_ENCRYPTION_EXTRA_LENGTH; |
62 | uint8_t *cipher = (uint8_t *)malloc(size); | 62 | uint8_t *cipher = (uint8_t *)malloc(size); |
63 | 63 | ||
64 | TOX_ERR_ENCRYPTION eerr; | 64 | Tox_Err_Encryption eerr; |
65 | 65 | ||
66 | ck_assert_msg(tox_pass_encrypt(clear, size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH, (const uint8_t *)pphrase, | 66 | ck_assert_msg(tox_pass_encrypt(clear, size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH, (const uint8_t *)pphrase, |
67 | strlen(pphrase), cipher, | 67 | strlen(pphrase), cipher, |
@@ -90,7 +90,7 @@ static void load_data_decrypted(void) | |||
90 | size_t read_value = fread(cipher, sizeof(*cipher), size, f); | 90 | size_t read_value = fread(cipher, sizeof(*cipher), size, f); |
91 | printf("Read read_value = %u of %u\n", (unsigned)read_value, (unsigned)size); | 91 | printf("Read read_value = %u of %u\n", (unsigned)read_value, (unsigned)size); |
92 | 92 | ||
93 | TOX_ERR_DECRYPTION derr; | 93 | Tox_Err_Decryption derr; |
94 | 94 | ||
95 | ck_assert_msg(tox_pass_decrypt(cipher, size, (const uint8_t *)pphrase, strlen(pphrase), clear, &derr), | 95 | ck_assert_msg(tox_pass_decrypt(cipher, size, (const uint8_t *)pphrase, strlen(pphrase), clear, &derr), |
96 | "Could not decrypt, error code %d.", derr); | 96 | "Could not decrypt, error code %d.", derr); |
@@ -101,7 +101,7 @@ static void load_data_decrypted(void) | |||
101 | 101 | ||
102 | tox_options_set_savedata_data(options, clear, size); | 102 | tox_options_set_savedata_data(options, clear, size); |
103 | 103 | ||
104 | TOX_ERR_NEW err; | 104 | Tox_Err_New err; |
105 | 105 | ||
106 | Tox *t = tox_new_log(options, &err, nullptr); | 106 | Tox *t = tox_new_log(options, &err, nullptr); |
107 | 107 | ||