summaryrefslogtreecommitdiff
path: root/auto_tests/file_saving_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-23 17:11:00 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-03-16 01:57:26 +0000
commitaa050954195f6323775ed68f4262edf2341c6953 (patch)
tree0b2f53b23b97dc1e90f798ae97321a727c413462 /auto_tests/file_saving_test.c
parent78d5b74dcee1208efe19dd115006034501c4380f (diff)
Remove the use of the 'hh' format specifier.
It's not supported in mingw. See https://github.com/TokTok/c-toxcore/issues/786.
Diffstat (limited to 'auto_tests/file_saving_test.c')
-rw-r--r--auto_tests/file_saving_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/file_saving_test.c b/auto_tests/file_saving_test.c
index 8aa14dc3..23a4c701 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 } 61 }
62 62
63 size_t written_value = fwrite(cipher, sizeof(*cipher), size, f); 63 size_t written_value = fwrite(cipher, sizeof(*cipher), size, f);
64 printf("written written_value = %zu of %zu\n", written_value, size); 64 printf("written written_value = %u of %u\n", (unsigned)written_value, (unsigned)size);
65 65
66 free(cipher); 66 free(cipher);
67 free(clear); 67 free(clear);
@@ -79,7 +79,7 @@ static void load_data_decrypted(void)
79 uint8_t *cipher = (uint8_t *)malloc(size); 79 uint8_t *cipher = (uint8_t *)malloc(size);
80 uint8_t *clear = (uint8_t *)malloc(size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH); 80 uint8_t *clear = (uint8_t *)malloc(size - TOX_PASS_ENCRYPTION_EXTRA_LENGTH);
81 size_t read_value = fread(cipher, sizeof(*cipher), size, f); 81 size_t read_value = fread(cipher, sizeof(*cipher), size, f);
82 printf("read read_vavue = %zu of %ld\n", read_value, size); 82 printf("read read_vavue = %u of %ld\n", (unsigned)read_value, size);
83 83
84 TOX_ERR_DECRYPTION derr; 84 TOX_ERR_DECRYPTION derr;
85 85