From 33637f136e6e470486df950932ae17ae07b8b4b2 Mon Sep 17 00:00:00 2001 From: Zenju Date: Sat, 5 Nov 2016 22:04:03 +0100 Subject: [PATCH] Fix MSVC 14 compilation warning (#92) 1> sftp.c 1>libssh2-files\src\sftp.c(3393): warning C4456: declaration of 'retcode' hides previous local declaration 1> libssh2-files\src\sftp.c(3315): note: see declaration of 'retcode' --- src/sftp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sftp.c b/src/sftp.c index 7c44116..03454fa 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -3390,8 +3390,6 @@ static int sftp_symlink(LIBSSH2_SFTP *sftp, const char *path, sftp->symlink_state = libssh2_NB_state_idle; if (data[0] == SSH_FXP_STATUS) { - int retcode; - retcode = _libssh2_ntohu32(data + 5); LIBSSH2_FREE(session, data); if (retcode == LIBSSH2_FX_OK)