1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

packet: Replace PRIdS with ANSI C99 %zu

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2020-01-15 17:18:53 +01:00
parent 73f383a2e6
commit faedadf2eb
2 changed files with 3 additions and 3 deletions

View File

@@ -1352,7 +1352,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
if (processed < receivedlen) { if (processed < receivedlen) {
/* Handle a potential packet left in socket buffer */ /* Handle a potential packet left in socket buffer */
SSH_LOG(SSH_LOG_PACKET, SSH_LOG(SSH_LOG_PACKET,
"Processing %" PRIdS " bytes left in socket buffer", "Processing %zu bytes left in socket buffer",
receivedlen-processed); receivedlen-processed);
ptr = ((uint8_t*)data) + processed; ptr = ((uint8_t*)data) + processed;
@@ -1384,7 +1384,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
error: error:
session->session_state= SSH_SESSION_STATE_ERROR; session->session_state= SSH_SESSION_STATE_ERROR;
SSH_LOG(SSH_LOG_PACKET,"Packet: processed %" PRIdS " bytes", processed); SSH_LOG(SSH_LOG_PACKET,"Packet: processed %zu bytes", processed);
return processed; return processed;
} }

View File

@@ -112,7 +112,7 @@ int ssh_packet_decrypt(ssh_session session,
ssh_set_error(session, ssh_set_error(session,
SSH_FATAL, SSH_FATAL,
"Cryptographic functions must be used on multiple of " "Cryptographic functions must be used on multiple of "
"blocksize (received %" PRIdS ")", "blocksize (received %zu)",
encrypted_size); encrypted_size);
return SSH_ERROR; return SSH_ERROR;
} }