diff options
author | watercrossing <ingolf.becker@googlemail.com> | 2016-01-07 15:32:44 +0000 |
---|---|---|
committer | watercrossing <ingolf.becker@googlemail.com> | 2016-01-07 15:32:44 +0000 |
commit | 9765a91d79aaf3db383aefe508b9e00a99173a70 (patch) | |
tree | f9de392c0ce7c28cbd438858376f12f0212a7fa5 /libarchive/archive_write_set_format_warc.c | |
parent | ee410c7b62624c314fccc44a6cc761637ab5d493 (diff) | |
download | libarchive-9765a91d79aaf3db383aefe508b9e00a99173a70.tar.gz |
Fix `time` shadowing in archive_write_set_format_warc.c
Diffstat (limited to 'libarchive/archive_write_set_format_warc.c')
-rw-r--r-- | libarchive/archive_write_set_format_warc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libarchive/archive_write_set_format_warc.c b/libarchive/archive_write_set_format_warc.c index 81beb75f..923041ec 100644 --- a/libarchive/archive_write_set_format_warc.c +++ b/libarchive/archive_write_set_format_warc.c @@ -331,16 +331,16 @@ xstrftime(struct archive_string *as, const char *fmt, time_t t) /** like strftime(3) but for time_t objects */ struct tm *rt; #if defined(HAVE_GMTIME_R) || defined(HAVE__GMTIME64_S) - struct tm time; + struct tm timeHere; #endif char strtime[100]; size_t len; #ifdef HAVE_GMTIME_R - if ((rt = gmtime_r(&t, &time)) == NULL) + if ((rt = gmtime_r(&t, &timeHere)) == NULL) return; #elif defined(HAVE__GMTIME64_S) - _gmtime64_s(&time, &t); + _gmtime64_s(&timeHere, &t); #else if ((rt = gmtime(&t)) == NULL) return; |