diff options
author | irungentoo <irungentoo@gmail.com> | 2015-06-22 22:34:19 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-06-22 22:34:19 -0400 |
commit | f0433595f9c118bd19f1bf310ae65c02fbb2eb22 (patch) | |
tree | 2e835770759c21669db2974eb119f9ab08e128db /toxcore/Messenger.c | |
parent | a0e783213bff0ad39dc1c1acb7e552f3f8b94917 (diff) |
Fixed warning.
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 4d4b82c1..381ee737 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -1103,7 +1103,7 @@ long int new_filesender(const Messenger *m, int32_t friendnumber, uint32_t file_ | |||
1103 | int send_file_control_packet(const Messenger *m, int32_t friendnumber, uint8_t send_receive, uint8_t filenumber, | 1103 | int send_file_control_packet(const Messenger *m, int32_t friendnumber, uint8_t send_receive, uint8_t filenumber, |
1104 | uint8_t control_type, uint8_t *data, uint16_t data_length) | 1104 | uint8_t control_type, uint8_t *data, uint16_t data_length) |
1105 | { | 1105 | { |
1106 | if (1 + 3 + data_length > MAX_CRYPTO_DATA_SIZE) | 1106 | if ((unsigned int)(1 + 3 + data_length) > MAX_CRYPTO_DATA_SIZE) |
1107 | return -1; | 1107 | return -1; |
1108 | 1108 | ||
1109 | uint8_t packet[3 + data_length]; | 1109 | uint8_t packet[3 + data_length]; |
@@ -1435,7 +1435,7 @@ static void do_reqchunk_filecb(Messenger *m, int32_t friendnumber) | |||
1435 | } | 1435 | } |
1436 | 1436 | ||
1437 | /* TODO: if file is too slow, switch to the next. */ | 1437 | /* TODO: if file is too slow, switch to the next. */ |
1438 | if (ft->slots_allocated > free_slots) { | 1438 | if (ft->slots_allocated > (unsigned int)free_slots) { |
1439 | free_slots = 0; | 1439 | free_slots = 0; |
1440 | } else { | 1440 | } else { |
1441 | free_slots -= ft->slots_allocated; | 1441 | free_slots -= ft->slots_allocated; |