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:
parent
88673b2d1f
commit
c98b00a5f4
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user