1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-28 17:41:28 +03:00

log: Make global variables static

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider 2018-06-30 13:53:39 +02:00
parent 88673b2d1f
commit c98b00a5f4
2 changed files with 4 additions and 4 deletions

View File

@ -38,9 +38,9 @@
#include "libssh/misc.h" #include "libssh/misc.h"
#include "libssh/session.h" #include "libssh/session.h"
LIBSSH_THREAD int ssh_log_level; static LIBSSH_THREAD int ssh_log_level;
LIBSSH_THREAD ssh_logging_callback ssh_log_cb; static LIBSSH_THREAD ssh_logging_callback ssh_log_cb;
LIBSSH_THREAD void *ssh_log_userdata; static LIBSSH_THREAD void *ssh_log_userdata;
/** /**
* @defgroup libssh_log The SSH logging functions. * @defgroup libssh_log The SSH logging functions.

View File

@ -205,7 +205,7 @@ static void torture_config_new(void **state)
assert_int_equal(session->opts.timeout, 30); assert_int_equal(session->opts.timeout, 30);
assert_string_equal(session->opts.bindaddr, BIND_ADDRESS); 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); assert_int_equal(session->common.log_verbosity, SSH_LOG_TRACE);
/* reset to something sane */ /* reset to something sane */