@@ -126,15 +126,13 @@ static void tox_file_chunk_request(Tox *tox, uint32_t friend_number, uint32_t fi
126126 Tox_Err_File_Send_Chunk error ;
127127 tox_file_send_chunk (tox , friend_number , file_number , position , f_data , length , & error );
128128
129-
130129 ck_assert_msg (error == TOX_ERR_FILE_SEND_CHUNK_OK ,
131130 "could not send chunk, error num=%d pos=%d len=%d" , (int )error , (int )position , (int )length );
132131
133132 ++ sending_num ;
134133 sending_pos += length ;
135134}
136135
137-
138136static uint8_t num ;
139137static bool file_recv ;
140138static void write_file (Tox * tox , uint32_t friendnumber , uint32_t filenumber , uint64_t position , const uint8_t * data ,
@@ -225,8 +223,8 @@ static void file_transfer_test(void)
225223 tox_callback_file_recv (tox3 , tox_file_receive );
226224 const uint64_t totalf_size = UINT64_MAX ;
227225 Tox_File_Number fnum = tox_file_send (
228- tox2 , 0 , TOX_FILE_KIND_DATA , totalf_size , nullptr ,
229- (const uint8_t * )"Gentoo.exe" , sizeof ("Gentoo.exe" ), nullptr );
226+ tox2 , 0 , TOX_FILE_KIND_DATA , totalf_size , nullptr ,
227+ (const uint8_t * )"Gentoo.exe" , sizeof ("Gentoo.exe" ), nullptr );
230228 ck_assert_msg (fnum != UINT32_MAX , "tox_new_file_sender fail" );
231229
232230 Tox_Err_File_Get gfierr ;
0 commit comments