diff options
author | irungentoo <irungentoo@gmail.com> | 2013-11-29 10:03:05 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-11-29 10:03:05 -0500 |
commit | 6e691a3c34ba41f38cf69fb9c9e1daea2762ebd1 (patch) | |
tree | 0870f5bd542a728fc68118a6312125f95802a742 /toxcore/Messenger.c | |
parent | 4eeca8971fbe3cf596360d86e2da67737c7df066 (diff) |
Fixed possible issue.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 4 |
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_ | |||
1161 | int new_filesender(Messenger *m, int friendnumber, uint64_t filesize, uint8_t *filename, uint16_t filename_length) | 1161 | int 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 | */ |
1314 | uint64_t file_dataremaining(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t send_receive) | 1314 | uint64_t file_dataremaining(Messenger *m, int friendnumber, uint8_t filenumber, uint8_t send_receive) |
1315 | { | 1315 | { |