diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-23 21:49:24 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-30 21:26:51 +0200 |
commit | 0aa0cbda4236940832bd5196987a75f2aea4721e (patch) | |
tree | edd83ccee53e2fd8701d620f012284199f8dcd6a /toxcore/onion.c | |
parent | aba594d1f866178ccf8ec2d628c27a340e48e183 (diff) |
Const-correctness for toxcore/onion_announce.c
Diffstat (limited to 'toxcore/onion.c')
-rw-r--r-- | toxcore/onion.c | 2 |
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 | */ |
96 | int create_onion_packet(uint8_t *packet, uint16_t max_packet_length, Onion_Path *path, IP_Port dest, uint8_t *data, | 96 | int 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) |