]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix `time` shadowing in archive_write_set_format_warc.c 641/head
authorwatercrossing <ingolf.becker@googlemail.com>
Thu, 7 Jan 2016 15:32:44 +0000 (15:32 +0000)
committerwatercrossing <ingolf.becker@googlemail.com>
Thu, 7 Jan 2016 15:32:44 +0000 (15:32 +0000)
libarchive/archive_write_set_format_warc.c

index 81beb75fda11a3d81c12ff0442bc48d89510e3ed..923041ec4ca54f28b8122a2a1315b946d92f08e0 100644 (file)
@@ -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;