diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2013-07-14 12:53:01 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-14 12:53:01 +0200 |
commit | 0d3deeec101b0d6568d7c04eda833bde47c7329c (patch) | |
tree | 50c9ab212321a958e2005e322edb8e39abbbe294 /src/options.c | |
parent | c28efb8cbc2be66ab3e10258b5037f6a8f6ab13f (diff) | |
download | libssh-0d3deeec101b0d6568d7c04eda833bde47c7329c.tar.gz libssh-0d3deeec101b0d6568d7c04eda833bde47c7329c.tar.xz libssh-0d3deeec101b0d6568d7c04eda833bde47c7329c.zip |
options: Use the new function to use the log level.
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c index 464e806a..8d926b4e 100644 --- a/src/options.c +++ b/src/options.c @@ -1042,7 +1042,7 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) { cont = 0; } - ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &debuglevel); + ssh_set_log_level(debuglevel); optind = saveoptind; @@ -1360,7 +1360,7 @@ int ssh_bind_options_set(ssh_bind sshbind, enum ssh_bind_options_e type, return -1; } else { int *x = (int *) value; - sshbind->common.log_verbosity = *x & 0xffff; + ssh_set_log_level(*x & 0xffff); } break; case SSH_BIND_OPTIONS_LOG_VERBOSITY_STR: |