From 8e00294b3cb9808ce55160240454359638178275 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 23 Jun 2018 17:16:28 +0000 Subject: Add Logger to various net_crypto functions. In preparation for adding log statements. Also, fix an uninitialised variable warning in cppcheck. --- toxcore/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/util.h') 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); /* state load/save */ typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); -int load_state(load_state_callback_func load_state_callback, Logger *log, void *outer, +int load_state(load_state_callback_func load_state_callback, const Logger *log, void *outer, const uint8_t *data, uint32_t length, uint16_t cookie_inner); /* Returns -1 if failed or 0 if success */ -- cgit v1.2.3