1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-02 10:53:16 +03:00

SFTP: keep the sftp error code as 32 bit

'last_errno' holds to the error code from the SFTP protocol and
since that is 32 bits on the wire there's no point in using a
long for this internally which is larger on some platforms.
This commit is contained in:
Daniel Stenberg
2010-06-11 13:00:31 +02:00
parent 3490b3fe10
commit 18605cb81f

View File

@@ -583,7 +583,7 @@ struct _LIBSSH2_SFTP
/* a list of _LIBSSH2_SFTP_HANDLE structs */
struct list_head sftp_handles;
unsigned long last_errno;
uint32_t last_errno;
/* Holder for partial packet, use in libssh2_sftp_packet_read() */
unsigned char *partial_packet; /* The data */