aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-04 19:44:31 +0000
committerYang Tse <yangsita@gmail.com>2010-02-04 19:44:31 +0000
commit7aef172a347a0422a0968fde9c487639ff673383 (patch)
tree56ffb38d50520aa2a62aefa24a592381ecec4193 /lib/ssh.c
parentf47b84b57ff74915820d26efc30459158bbe5c9c (diff)
fix printf-style format strings
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index edc89fde8..a143f3bb9 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -965,7 +965,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
err = libssh2_sftp_last_error(sshc->sftp_session);
result = sftp_libssh2_error_to_CURLE(err);
sshc->actualcode = result?result:CURLE_SSH;
- DEBUGF(infof(data, "error = %d makes libcurl = %d\n", err, result));
+ DEBUGF(infof(data, "error = %d makes libcurl = %d\n",
+ err, (int)result));
state(conn, SSH_STOP);
break;
}
@@ -2491,7 +2492,7 @@ static CURLcode ssh_connect(struct connectdata *conn, bool *done)
#ifdef CURL_LIBSSH2_DEBUG
libssh2_trace(ssh->ssh_session, ~0);
- infof(data, "SSH socket: %d\n", sock);
+ infof(data, "SSH socket: %d\n", (int)sock);
#endif /* CURL_LIBSSH2_DEBUG */
state(conn, SSH_S_STARTUP);