diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-13 22:55:15 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-13 22:55:15 +0200 |
commit | 4940c4c62b6014d1f0586aa6aca7bf6e4ecfcf29 (patch) | |
tree | 7936a06cc5aec8fb6ec42c9680801a9a878d5fd7 /toxcore/ping.c | |
parent | 714b2aeaee09ca04b73cfd05eb42c0cdd57e0f57 (diff) |
Const correctness for various packet callbacks
Diffstat (limited to 'toxcore/ping.c')
-rw-r--r-- | toxcore/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/ping.c b/toxcore/ping.c index ea8fd04d..e00036af 100644 --- a/toxcore/ping.c +++ b/toxcore/ping.c | |||
@@ -129,7 +129,7 @@ static int send_ping_response(PING *ping, IP_Port ipp, const uint8_t *client_id, | |||
129 | return sendpacket(ping->dht->net, ipp, pk, sizeof(pk)); | 129 | return sendpacket(ping->dht->net, ipp, pk, sizeof(pk)); |
130 | } | 130 | } |
131 | 131 | ||
132 | static int handle_ping_request(void *_dht, IP_Port source, uint8_t *packet, uint32_t length) | 132 | static int handle_ping_request(void *_dht, IP_Port source, const uint8_t *packet, uint32_t length) |
133 | { | 133 | { |
134 | DHT *dht = _dht; | 134 | DHT *dht = _dht; |
135 | int rc; | 135 | int rc; |
@@ -168,7 +168,7 @@ static int handle_ping_request(void *_dht, IP_Port source, uint8_t *packet, uint | |||
168 | return 0; | 168 | return 0; |
169 | } | 169 | } |
170 | 170 | ||
171 | static int handle_ping_response(void *_dht, IP_Port source, uint8_t *packet, uint32_t length) | 171 | static int handle_ping_response(void *_dht, IP_Port source, const uint8_t *packet, uint32_t length) |
172 | { | 172 | { |
173 | DHT *dht = _dht; | 173 | DHT *dht = _dht; |
174 | int rc; | 174 | int rc; |