diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-06-03 16:45:23 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-06-03 16:45:23 +0200 |
commit | cd1129b9b879066754797ec6522e58ac7f7f5fc5 (patch) | |
tree | bac1a310ec1d265e6aad2b93245ad3cfbd9b23ce /libssh/config.c | |
parent | 216cabc563e5629b0dad0d065bc1cc4ea8f91bba (diff) | |
download | libssh-cd1129b9b879066754797ec6522e58ac7f7f5fc5.tar.gz libssh-cd1129b9b879066754797ec6522e58ac7f7f5fc5.tar.xz libssh-cd1129b9b879066754797ec6522e58ac7f7f5fc5.zip |
config: Use ssh log and error functions for problems.
Diffstat (limited to 'libssh/config.c')
-rw-r--r-- | libssh/config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh/config.c b/libssh/config.c index 6c00c130..cfe2cc5f 100644 --- a/libssh/config.c +++ b/libssh/config.c @@ -303,10 +303,12 @@ static int ssh_config_parse_line(ssh_session session, const char *line, } break; case SOC_UNSUPPORTED: - fprintf(stderr, "Unsupported option: %s, line: %d\n", keyword, count); + ssh_log(session, SSH_LOG_RARE, "Unsupported option: %s, line: %d\n", + keyword, count); break; default: - fprintf(stderr, "ERROR - unimplemented opcode: %d\n", opcode); + ssh_set_error(session, SSH_FATAL, "ERROR - unimplemented opcode: %d\n", + opcode); SAFE_FREE(x); return -1; break; |