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/LAN_discovery.c | |
parent | 714b2aeaee09ca04b73cfd05eb42c0cdd57e0f57 (diff) |
Const correctness for various packet callbacks
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 2deeadfd..e1b8534c 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -98,7 +98,7 @@ static void fetch_broadcast_info(uint16_t port) | |||
98 | * return 1 if sent to at least one broadcast target. | 98 | * return 1 if sent to at least one broadcast target. |
99 | * return 0 on failure to find any valid broadcast target. | 99 | * return 0 on failure to find any valid broadcast target. |
100 | */ | 100 | */ |
101 | static uint32_t send_broadcasts(Networking_Core *net, uint16_t port, uint8_t *data, uint16_t length) | 101 | static uint32_t send_broadcasts(Networking_Core *net, uint16_t port, const uint8_t *data, uint16_t length) |
102 | { | 102 | { |
103 | /* fetch only once? on every packet? every X seconds? | 103 | /* fetch only once? on every packet? every X seconds? |
104 | * old: every packet, new: once */ | 104 | * old: every packet, new: once */ |
@@ -207,7 +207,7 @@ int LAN_ip(IP ip) | |||
207 | return -1; | 207 | return -1; |
208 | } | 208 | } |
209 | 209 | ||
210 | static int handle_LANdiscovery(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 210 | static int handle_LANdiscovery(void *object, IP_Port source, const uint8_t *packet, uint32_t length) |
211 | { | 211 | { |
212 | DHT *dht = object; | 212 | DHT *dht = object; |
213 | 213 | ||