diff options
| author | Dan Fandrich <dan@coneharvesters.com> | 2007-09-27 01:45:22 +0000 |
|---|---|---|
| committer | Dan Fandrich <dan@coneharvesters.com> | 2007-09-27 01:45:22 +0000 |
| commit | 16b95fc77316fdd3866f7de4ebb5d14bd136ac11 (patch) | |
| tree | b30e7469d7d0c15d766747c9405ded68894718d5 /lib/ftp.c | |
| parent | 9c5cd6c4137e2c0f238b6f767fe40fdacb9b6ede (diff) | |
Enabled a few more gcc warnings with --enable-debug. Renamed a few
variables to avoid shadowing global declarations.
Diffstat (limited to 'lib/ftp.c')
| -rw-r--r-- | lib/ftp.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -633,7 +633,7 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ /* This is the ONLY way to change FTP state! */ static void state(struct connectdata *conn, - ftpstate state) + ftpstate newstate) { #if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS) /* for debug purposes */ @@ -674,11 +674,11 @@ static void state(struct connectdata *conn, #endif struct ftp_conn *ftpc = &conn->proto.ftpc; #if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS) - if(ftpc->state != state) + if(ftpc->state != newstate) infof(conn->data, "FTP %p state change from %s to %s\n", - ftpc, names[ftpc->state], names[state]); + ftpc, names[ftpc->state], names[newstate]); #endif - ftpc->state = state; + ftpc->state = newstate; } static CURLcode ftp_state_user(struct connectdata *conn) @@ -1882,12 +1882,12 @@ static CURLcode ftp_state_mdtm_resp(struct connectdata *conn, data->set.get_filetime && (data->info.filetime>=0) ) { struct tm *tm; - time_t clock = (time_t)data->info.filetime; + time_t filetime = (time_t)data->info.filetime; #ifdef HAVE_GMTIME_R struct tm buffer; - tm = (struct tm *)gmtime_r(&clock, &buffer); + tm = (struct tm *)gmtime_r(&filetime, &buffer); #else - tm = gmtime(&clock); + tm = gmtime(&filetime); #endif /* format: "Tue, 15 Nov 1994 12:45:26" */ snprintf(buf, BUFSIZE-1, |
