diff options
author | irungentoo <irungentoo@gmail.com> | 2014-08-28 20:54:05 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-08-28 20:54:05 -0400 |
commit | 411457dc8fed37cee29dad80f2cbf3816b14f11a (patch) | |
tree | 10dd71663228fcadfc0fe48d07ec1859b69d36c6 /toxcore/onion_announce.c | |
parent | ff02d5a607362df1382eeb4d7ef146eaab1c8dd1 (diff) |
Fixed gcc warnings.
Diffstat (limited to 'toxcore/onion_announce.c')
-rw-r--r-- | toxcore/onion_announce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c index f5c38eea..baccc95b 100644 --- a/toxcore/onion_announce.c +++ b/toxcore/onion_announce.c | |||
@@ -108,8 +108,8 @@ int create_data_request(uint8_t *packet, uint16_t max_packet_length, const uint8 | |||
108 | int len = encrypt_data(encrypt_public_key, random_secret_key, packet + 1 + crypto_box_PUBLICKEYBYTES, data, length, | 108 | int len = encrypt_data(encrypt_public_key, random_secret_key, packet + 1 + crypto_box_PUBLICKEYBYTES, data, length, |
109 | packet + 1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES + crypto_box_PUBLICKEYBYTES); | 109 | packet + 1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES + crypto_box_PUBLICKEYBYTES); |
110 | 110 | ||
111 | if (1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES + crypto_box_PUBLICKEYBYTES + | 111 | if (1 + crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES + crypto_box_PUBLICKEYBYTES + len != DATA_REQUEST_MIN_SIZE + |
112 | (uint32_t)len != DATA_REQUEST_MIN_SIZE + length) | 112 | length) |
113 | return -1; | 113 | return -1; |
114 | 114 | ||
115 | return DATA_REQUEST_MIN_SIZE + length; | 115 | return DATA_REQUEST_MIN_SIZE + length; |