diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-04 10:49:32 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-11-04 10:51:17 +0100 |
commit | 0940c6f1b00bd4b6a0bcac75429adb1c0c121a29 (patch) | |
tree | fa18a807da2b266768f5627066d9c1848b188ab6 | |
parent | 2e6dbe8d3dcffb92a9db1bcaf2b73e113ac4cd4d (diff) | |
download | libssh-0940c6f1b00bd4b6a0bcac75429adb1c0c121a29.tar.gz libssh-0940c6f1b00bd4b6a0bcac75429adb1c0c121a29.tar.xz libssh-0940c6f1b00bd4b6a0bcac75429adb1c0c121a29.zip |
Fix cast warnings on 64bits
-rw-r--r-- | src/curve25519.c | 4 | ||||
-rw-r--r-- | src/log.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/curve25519.c b/src/curve25519.c index 916eb81e..153fbcd9 100644 --- a/src/curve25519.c +++ b/src/curve25519.c @@ -128,7 +128,7 @@ int ssh_client_curve25519_reply(ssh_session session, ssh_buffer packet){ } if (ssh_string_len(q_s_string) != CURVE25519_PUBKEY_SIZE){ ssh_set_error(session, SSH_FATAL, "Incorrect size for server Curve25519 public key: %d", - ssh_string_len(q_s_string)); + (int)ssh_string_len(q_s_string)); ssh_string_free(q_s_string); goto error; } @@ -182,7 +182,7 @@ int ssh_server_curve25519_init(ssh_session session, ssh_buffer packet){ } if (ssh_string_len(q_c_string) != CURVE25519_PUBKEY_SIZE){ ssh_set_error(session, SSH_FATAL, "Incorrect size for server Curve25519 public key: %d", - ssh_string_len(q_c_string)); + (int)ssh_string_len(q_c_string)); ssh_string_free(q_c_string); return SSH_ERROR; } @@ -65,7 +65,7 @@ static int current_timestring(int hires, char *buf, size_t len) if (hires) { strftime(tbuf, sizeof(tbuf) - 1, "%Y/%m/%d %H:%M:%S", tm); - snprintf(buf, len, "%s.%06ld", tbuf, tv.tv_usec); + snprintf(buf, len, "%s.%06ld", tbuf, (long)tv.tv_usec); } else { strftime(tbuf, sizeof(tbuf) - 1, "%Y/%m/%d %H:%M:%S", tm); snprintf(buf, len, "%s", tbuf); |