summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/log.c b/log.c
index 36472db..cc7f9a4 100644
--- a/log.c
+++ b/log.c
@@ -151,6 +151,7 @@ static const char *tox_log_level_name(TOX_LOG_LEVEL level)
151void on_tox_log(Tox *tox, TOX_LOG_LEVEL level, const char *path, uint32_t line, const char *func, 151void on_tox_log(Tox *tox, TOX_LOG_LEVEL level, const char *path, uint32_t line, const char *func,
152 const char *message, void *user_data) 152 const char *message, void *user_data)
153{ 153{
154 tox = tox;
154 uint32_t index = user_data ? *(uint32_t *)user_data : 0; 155 uint32_t index = user_data ? *(uint32_t *)user_data : 0;
155 const char *file = strrchr(path, '/'); 156 const char *file = strrchr(path, '/');
156 157