summaryrefslogtreecommitdiff
path: root/toxcore/onion.c
diff options
context:
space:
mode:
authorMarc Schütz <schuetzm@gmx.net>2014-06-23 21:49:24 +0200
committerMarc Schütz <schuetzm@gmx.net>2014-06-30 21:26:51 +0200
commit0aa0cbda4236940832bd5196987a75f2aea4721e (patch)
treeedd83ccee53e2fd8701d620f012284199f8dcd6a /toxcore/onion.c
parentaba594d1f866178ccf8ec2d628c27a340e48e183 (diff)
Const-correctness for toxcore/onion_announce.c
Diffstat (limited to 'toxcore/onion.c')
-rw-r--r--toxcore/onion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion.c b/toxcore/onion.c
index ac654689..3c4d2ad1 100644
--- a/toxcore/onion.c
+++ b/toxcore/onion.c
@@ -93,7 +93,7 @@ int create_onion_path(DHT *dht, Onion_Path *new_path, Node_format *nodes)
93 * return -1 on failure. 93 * return -1 on failure.
94 * return length of created packet on success. 94 * return length of created packet on success.
95 */ 95 */
96int create_onion_packet(uint8_t *packet, uint16_t max_packet_length, Onion_Path *path, IP_Port dest, uint8_t *data, 96int create_onion_packet(uint8_t *packet, uint16_t max_packet_length, const Onion_Path *path, IP_Port dest, const uint8_t *data,
97 uint32_t length) 97 uint32_t length)
98{ 98{
99 if (1 + length + SEND_1 > max_packet_length || length == 0) 99 if (1 + length + SEND_1 > max_packet_length || length == 0)