diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-10 18:27:05 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-10 18:27:05 +0200 |
commit | 9e028b243a8eff03518e048b25a169166441df34 (patch) | |
tree | 52cbc30cf4ef03a7ba95939d20750b020c2c493e /toxcore/util.h | |
parent | 890472886ce375a2dfd80db217328e76ac93c383 (diff) |
Const correctness for toxcore/util.c
Diffstat (limited to 'toxcore/util.h')
-rw-r--r-- | toxcore/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/util.h b/toxcore/util.h index 71c2f5c7..74348c11 100644 --- a/toxcore/util.h +++ b/toxcore/util.h | |||
@@ -36,8 +36,8 @@ int is_timeout(uint64_t timestamp, uint64_t timeout); | |||
36 | 36 | ||
37 | 37 | ||
38 | /* id functions */ | 38 | /* id functions */ |
39 | bool id_equal(uint8_t *dest, uint8_t *src); | 39 | bool id_equal(const uint8_t *dest, const uint8_t *src); |
40 | uint32_t id_copy(uint8_t *dest, uint8_t *src); /* return value is CLIENT_ID_SIZE */ | 40 | uint32_t id_copy(uint8_t *dest, const uint8_t *src); /* return value is CLIENT_ID_SIZE */ |
41 | 41 | ||
42 | void host_to_net(uint8_t *num, uint16_t numbytes); | 42 | void host_to_net(uint8_t *num, uint16_t numbytes); |
43 | #define net_to_host(x, y) host_to_net(x, y) | 43 | #define net_to_host(x, y) host_to_net(x, y) |