aboutsummaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-09-27 01:45:22 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-09-27 01:45:22 +0000
commit16b95fc77316fdd3866f7de4ebb5d14bd136ac11 (patch)
treeb30e7469d7d0c15d766747c9405ded68894718d5 /lib/file.c
parent9c5cd6c4137e2c0f238b6f767fe40fdacb9b6ede (diff)
Enabled a few more gcc warnings with --enable-debug. Renamed a few
variables to avoid shadowing global declarations.
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/file.c b/lib/file.c
index 0478d3ebd..88d6bf26a 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -373,12 +373,12 @@ CURLcode Curl_file(struct connectdata *conn, bool *done)
if(fstated) {
const struct tm *tm;
- time_t clock = (time_t)statbuf.st_mtime;
+ time_t filetime = (time_t)statbuf.st_mtime;
#ifdef HAVE_GMTIME_R
struct tm buffer;
- tm = (const struct tm *)gmtime_r(&clock, &buffer);
+ tm = (const struct tm *)gmtime_r(&filetime, &buffer);
#else
- tm = gmtime(&clock);
+ tm = gmtime(&filetime);
#endif
/* format: "Tue, 15 Nov 1994 12:45:26 GMT" */
snprintf(buf, BUFSIZE-1,