diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-10 20:54:48 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-10 20:54:48 +0200 |
commit | 99d594014014a37fdee9e83575a8895400c9cd60 (patch) | |
tree | 55152fcfb850511b17ae2af9c77bf30778b465d2 /toxcore/util.h | |
parent | 8bdf487d199b82db85883b613e86deeba15f9b32 (diff) |
Const correctness in various interdependent files
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 74348c11..955ce8c4 100644 --- a/toxcore/util.h +++ b/toxcore/util.h | |||
@@ -43,9 +43,9 @@ 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) |
44 | 44 | ||
45 | /* state load/save */ | 45 | /* state load/save */ |
46 | typedef int (*load_state_callback_func)(void *outer, uint8_t *data, uint32_t len, uint16_t type); | 46 | typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); |
47 | int load_state(load_state_callback_func load_state_callback, void *outer, | 47 | int load_state(load_state_callback_func load_state_callback, void *outer, |
48 | uint8_t *data, uint32_t length, uint16_t cookie_inner); | 48 | const uint8_t *data, uint32_t length, uint16_t cookie_inner); |
49 | 49 | ||
50 | /* Converts 4 bytes to uint32_t */ | 50 | /* Converts 4 bytes to uint32_t */ |
51 | void bytes_to_U32(uint32_t *dest, const uint8_t *bytes); | 51 | void bytes_to_U32(uint32_t *dest, const uint8_t *bytes); |