summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 954b31dd..10e36746 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1161,7 +1161,7 @@ int file_sendrequest(Messenger *m, int friendnumber, uint8_t filenumber, uint64_
1161int new_filesender(Messenger *m, int friendnumber, uint64_t filesize, uint8_t *filename, uint16_t filename_length) 1161int new_filesender(Messenger *m, int friendnumber, uint64_t filesize, uint8_t *filename, uint16_t filename_length)
1162{ 1162{
1163 if (friend_not_valid(m, friendnumber)) 1163 if (friend_not_valid(m, friendnumber))
1164 return 0; 1164 return -1;
1165 1165
1166 uint32_t i; 1166 uint32_t i;
1167 1167
@@ -1309,7 +1309,7 @@ int file_data(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t *data,
1309 * send_receive is 0 if we want the sending files, 1 if we want the receiving. 1309 * send_receive is 0 if we want the sending files, 1 if we want the receiving.
1310 * 1310 *
1311 * return number of bytes remaining to be sent/received on success 1311 * return number of bytes remaining to be sent/received on success
1312 * return -1 on failure 1312 * return 0 on failure
1313 */ 1313 */
1314uint64_t file_dataremaining(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t send_receive) 1314uint64_t file_dataremaining(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t send_receive)
1315{ 1315{