|sftp.c:1470: warning: cast to pointer from integer of different size Another
reason why macros are evil: The string (which is allready char *) should be cast into char * not the integer. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
This commit is contained in:
parent
d4aa801f6f
commit
3f0d30d1d6
@ -1468,8 +1468,8 @@ libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE * handle,
|
||||
return PACKET_EAGAIN;
|
||||
} else if (packet_len != rc) {
|
||||
libssh2_error(session, LIBSSH2_ERROR_SOCKET_SEND,
|
||||
setstat ? (char *) "Unable to send FXP_FSETSTAT"
|
||||
: (char *) "Unable to send FXP_FSTAT command", 0);
|
||||
setstat ? "Unable to send FXP_FSETSTAT"
|
||||
: "Unable to send FXP_FSTAT command", 0);
|
||||
LIBSSH2_FREE(session, sftp->fstat_packet);
|
||||
sftp->fstat_packet = NULL;
|
||||
sftp->fstat_state = libssh2_NB_state_idle;
|
||||
|
Loading…
Reference in New Issue
Block a user