mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user