misc.c: Fixed warning about unused parameter abstract

This commit is contained in:
Marc Hoersken 2014-05-18 10:23:18 +02:00
parent b9dc6112d7
commit 62c91e2cd4

View File

@ -94,8 +94,10 @@ static int wsa2errno(void)
* Replacement for the standard recv, return -errno on failure.
*/
ssize_t
_libssh2_recv(libssh2_socket_t sock, void *buffer, size_t length, int flags, void **abstract)
_libssh2_recv(libssh2_socket_t sock, void *buffer, size_t length,
int flags, void **abstract)
{
(void) abstract;
ssize_t rc = recv(sock, buffer, length, flags);
#ifdef WIN32
if (rc < 0 )
@ -128,6 +130,7 @@ ssize_t
_libssh2_send(libssh2_socket_t sock, const void *buffer, size_t length,
int flags, void **abstract)
{
(void) abstract;
ssize_t rc = send(sock, buffer, length, flags);
#ifdef WIN32
if (rc < 0 )