diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 17:16:28 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 19:17:32 +0000 |
commit | 8e00294b3cb9808ce55160240454359638178275 (patch) | |
tree | 095a7708b3fe3566951ebe7b068ee66a8beed3c1 /toxcore/util.c | |
parent | 5a8790eab0ed9421445adce40526462b9e6742c3 (diff) |
Add Logger to various net_crypto functions.
In preparation for adding log statements.
Also, fix an uninitialised variable warning in cppcheck.
Diffstat (limited to 'toxcore/util.c')
-rw-r--r-- | toxcore/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/util.c b/toxcore/util.c index 082e453f..57d1762e 100644 --- a/toxcore/util.c +++ b/toxcore/util.c | |||
@@ -122,7 +122,7 @@ void lendian_to_host32(uint32_t *dest, const uint8_t *lendian) | |||
122 | } | 122 | } |
123 | 123 | ||
124 | /* state load/save */ | 124 | /* state load/save */ |
125 | int load_state(load_state_callback_func load_state_callback, Logger *log, void *outer, | 125 | int load_state(load_state_callback_func load_state_callback, const Logger *log, void *outer, |
126 | const uint8_t *data, uint32_t length, uint16_t cookie_inner) | 126 | const uint8_t *data, uint32_t length, uint16_t cookie_inner) |
127 | { | 127 | { |
128 | if (!load_state_callback || !data) { | 128 | if (!load_state_callback || !data) { |