aboutsummaryrefslogtreecommitdiff
path: root/libssh/log.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-10-02 14:06:41 +0200
committerAndreas Schneider <mail@cynapses.org>2009-10-02 20:26:14 +0200
commitab5b4c7cfe668ee4103de146c2a739532abfc416 (patch)
treeec30d19a18400dbfa0f94bf90262d2c439c724aa /libssh/log.c
parente78334688fa510a5c859b0367d4d4779efae518a (diff)
downloadlibssh-ab5b4c7cfe668ee4103de146c2a739532abfc416.tar.gz
libssh-ab5b4c7cfe668ee4103de146c2a739532abfc416.tar.xz
libssh-ab5b4c7cfe668ee4103de146c2a739532abfc416.zip
Get rid of the options structure.
Diffstat (limited to 'libssh/log.c')
-rw-r--r--libssh/log.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libssh/log.c b/libssh/log.c
index d119f541..0dab4aef 100644
--- a/libssh/log.c
+++ b/libssh/log.c
@@ -27,7 +27,6 @@
#include "libssh/priv.h"
#include "libssh/session.h"
-#include "libssh/options.h"
/**
* @defgroup ssh_log SSH Logging
@@ -57,9 +56,9 @@ void ssh_log(ssh_session session, int verbosity, const char *format, ...) {
vsnprintf(buffer, sizeof(buffer), format, va);
va_end(va);
- if (session->options->callbacks && session->options->callbacks->log_function) {
- session->options->callbacks->log_function(session, verbosity, buffer,
- session->options->callbacks->userdata);
+ if (session->callbacks && session->callbacks->log_function) {
+ session->callbacks->log_function(session, verbosity, buffer,
+ session->callbacks->userdata);
} else if (verbosity == SSH_LOG_FUNCTIONS) {
if (session->log_indent > 255) {
min = 255;