@@ -53,7 +53,7 @@ static void tox_file_receive(Tox *tox, uint32_t friend_number, uint32_t file_num
5353
5454 ck_assert_msg (memcmp (file_id , file_cmp_id , TOX_FILE_ID_LENGTH ) == 0 , "bad file_id" );
5555
56- uint8_t empty [TOX_FILE_ID_LENGTH ] = {0 };
56+ const uint8_t empty [TOX_FILE_ID_LENGTH ] = {0 };
5757
5858 ck_assert_msg (memcmp (empty , file_cmp_id , TOX_FILE_ID_LENGTH ) != 0 , "empty file_id" );
5959
@@ -209,7 +209,6 @@ static void file_transfer_test(void)
209209 file_accepted = file_size = sendf_ok = size_recv = 0 ;
210210 file_recv = 0 ;
211211 max_sending = UINT64_MAX ;
212- uint64_t totalf_size = 100 * 1024 * 1024 ;
213212
214213 printf ("Starting file streaming transfer test.\n" );
215214
@@ -224,7 +223,7 @@ static void file_transfer_test(void)
224223 tox_callback_file_chunk_request (tox2 , tox_file_chunk_request );
225224 tox_callback_file_recv_control (tox3 , file_print_control );
226225 tox_callback_file_recv (tox3 , tox_file_receive );
227- totalf_size = UINT64_MAX ;
226+ const uint64_t totalf_size = UINT64_MAX ;
228227 Tox_File_Number fnum = tox_file_send (
229228 tox2 , 0 , TOX_FILE_KIND_DATA , totalf_size , nullptr ,
230229 (const uint8_t * )"Gentoo.exe" , sizeof ("Gentoo.exe" ), nullptr );
0 commit comments