From e68c895fc4472f74adaa61bf755a9a65065f96e2 Mon Sep 17 00:00:00 2001 From: Jernej Kovacic Date: Tue, 31 Jan 2012 23:07:21 +0100 Subject: [PATCH] libssh2_session_supported_algs: fix compiler warning --- src/kex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kex.c b/src/kex.c index 6d2e31e1..0a72cb75 100644 --- a/src/kex.c +++ b/src/kex.c @@ -1997,7 +1997,7 @@ LIBSSH2_API int libssh2_session_supported_algs(LIBSSH2_SESSION* session, /* correct number of pointers copied? (test the code above) */ if ( j!=ialg ) { /* deallocate buffer */ - LIBSSH2_FREE(session, *algs); + LIBSSH2_FREE(session, (void *)*algs); *algs = NULL; return _libssh2_error(session, LIBSSH2_ERROR_BAD_USE,