mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed possible issue.
This commit is contained in:
parent
4eeca8971f
commit
6e691a3c34
|
@ -1161,7 +1161,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_
|
|||
int new_filesender(Messenger *m, int friendnumber, uint64_t filesize, uint8_t *filename, uint16_t filename_length)
|
||||
{
|
||||
if (friend_not_valid(m, friendnumber))
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
uint32_t i;
|
||||
|
||||
|
@ -1309,7 +1309,7 @@ int file_data(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t *data,
|
|||
* send_receive is 0 if we want the sending files, 1 if we want the receiving.
|
||||
*
|
||||
* return number of bytes remaining to be sent/received on success
|
||||
* return -1 on failure
|
||||
* return 0 on failure
|
||||
*/
|
||||
uint64_t file_dataremaining(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t send_receive)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user