rename variable to prevent shadow warning
This commit is contained in:
parent
8179743cee
commit
bb667c8ac6
@ -229,7 +229,7 @@ static LIBSSH2_FREE_FUNC(libssh2_free)
|
|||||||
* SSH State machine related code
|
* SSH State machine related code
|
||||||
*/
|
*/
|
||||||
/* This is the ONLY way to change SSH state! */
|
/* This is the ONLY way to change SSH state! */
|
||||||
static void state(struct connectdata *conn, sshstate state)
|
static void state(struct connectdata *conn, sshstate nowstate)
|
||||||
{
|
{
|
||||||
#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
/* for debug purposes */
|
/* for debug purposes */
|
||||||
@ -291,13 +291,13 @@ static void state(struct connectdata *conn, sshstate state)
|
|||||||
struct ssh_conn *sshc = &conn->proto.sshc;
|
struct ssh_conn *sshc = &conn->proto.sshc;
|
||||||
|
|
||||||
#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||||
if (sshc->state != state) {
|
if (sshc->state != nowstate) {
|
||||||
infof(conn->data, "SFTP %p state change from %s to %s\n",
|
infof(conn->data, "SFTP %p state change from %s to %s\n",
|
||||||
sshc, names[sshc->state], names[state]);
|
sshc, names[sshc->state], names[nowstate]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sshc->state = state;
|
sshc->state = nowstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
static CURLcode ssh_statemach_act(struct connectdata *conn)
|
static CURLcode ssh_statemach_act(struct connectdata *conn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user