aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-09-28 21:45:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-09-28 21:45:05 +0000
commitbb667c8ac642611ee2481fc3099f1789b3ca6982 (patch)
tree119f8daf632d908dd6e00c40d3f7f7be69cf4256 /lib
parent8179743cee9d2fe0062298afd5e7b5d89f6b316e (diff)
rename variable to prevent shadow warning
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index d95db32cd..b7da3bff3 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -229,7 +229,7 @@ static LIBSSH2_FREE_FUNC(libssh2_free)
* SSH State machine related code
*/
/* 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)
/* for debug purposes */
@@ -291,13 +291,13 @@ static void state(struct connectdata *conn, sshstate state)
struct ssh_conn *sshc = &conn->proto.sshc;
#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",
- sshc, names[sshc->state], names[state]);
+ sshc, names[sshc->state], names[nowstate]);
}
#endif
- sshc->state = state;
+ sshc->state = nowstate;
}
static CURLcode ssh_statemach_act(struct connectdata *conn)