diff --git a/src/log.c b/src/log.c index 6a868889..39635cc1 100644 --- a/src/log.c +++ b/src/log.c @@ -38,9 +38,9 @@ #include "libssh/misc.h" #include "libssh/session.h" -LIBSSH_THREAD int ssh_log_level; -LIBSSH_THREAD ssh_logging_callback ssh_log_cb; -LIBSSH_THREAD void *ssh_log_userdata; +static LIBSSH_THREAD int ssh_log_level; +static LIBSSH_THREAD ssh_logging_callback ssh_log_cb; +static LIBSSH_THREAD void *ssh_log_userdata; /** * @defgroup libssh_log The SSH logging functions. diff --git a/tests/unittests/torture_config.c b/tests/unittests/torture_config.c index fbbea1ca..a7e00c73 100644 --- a/tests/unittests/torture_config.c +++ b/tests/unittests/torture_config.c @@ -205,7 +205,7 @@ static void torture_config_new(void **state) assert_int_equal(session->opts.timeout, 30); assert_string_equal(session->opts.bindaddr, BIND_ADDRESS); - assert_int_equal(ssh_log_level, SSH_LOG_TRACE); + assert_int_equal(ssh_get_log_level(), SSH_LOG_TRACE); assert_int_equal(session->common.log_verbosity, SSH_LOG_TRACE); /* reset to something sane */