1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-23 01:22:37 +03:00

scp_recv: remove dead assignment

Instead of assigning a variable we won't read, we now use the more
explicit (void) prefix.
This commit is contained in:
Daniel Stenberg
2010-11-01 22:59:15 +01:00
parent 57af0da9f7
commit 4760e4d051

View File

@@ -421,7 +421,7 @@ scp_recv(LIBSSH2_SESSION * session, const char *path, struct stat * sb)
session->scpRecv_err_len + 1); session->scpRecv_err_len + 1);
/* Read the remote error message */ /* Read the remote error message */
rc = _libssh2_channel_read(session->scpRecv_channel, 0, (void)_libssh2_channel_read(session->scpRecv_channel, 0,
session->scpRecv_err_msg, session->scpRecv_err_msg,
session->scpRecv_err_len); session->scpRecv_err_len);
/* If it failed for any reason, we ignore it anyway. */ /* If it failed for any reason, we ignore it anyway. */