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.h | |
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.h')
-rw-r--r-- | toxcore/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/util.h b/toxcore/util.h index a9faa863..3979cefe 100644 --- a/toxcore/util.h +++ b/toxcore/util.h | |||
@@ -59,7 +59,7 @@ void lendian_to_host32(uint32_t *dest, const uint8_t *lendian); | |||
59 | 59 | ||
60 | /* state load/save */ | 60 | /* state load/save */ |
61 | typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); | 61 | typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); |
62 | int load_state(load_state_callback_func load_state_callback, Logger *log, void *outer, | 62 | int load_state(load_state_callback_func load_state_callback, const Logger *log, void *outer, |
63 | const uint8_t *data, uint32_t length, uint16_t cookie_inner); | 63 | const uint8_t *data, uint32_t length, uint16_t cookie_inner); |
64 | 64 | ||
65 | /* Returns -1 if failed or 0 if success */ | 65 | /* Returns -1 if failed or 0 if success */ |