diff options
Diffstat (limited to 'libarchive/test/test_write_format_zip_file_zip64.c')
-rw-r--r-- | libarchive/test/test_write_format_zip_file_zip64.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libarchive/test/test_write_format_zip_file_zip64.c b/libarchive/test/test_write_format_zip_file_zip64.c index 8e3b12e1..8a506226 100644 --- a/libarchive/test/test_write_format_zip_file_zip64.c +++ b/libarchive/test/test_write_format_zip_file_zip64.c @@ -79,10 +79,6 @@ DEFINE_TEST(test_write_format_zip_file_zip64) #if defined(HAVE_LOCALTIME_R) || defined(HAVE__LOCALTIME64_S) struct tm tmbuf; #endif -#if defined(HAVE__LOCALTIME64_S) - errno_t terr; - __time64_t tmptime; -#endif size_t used, buffsize = 1000000; unsigned long crc; int file_perm = 00644; @@ -100,12 +96,7 @@ DEFINE_TEST(test_write_format_zip_file_zip64) #endif #if defined(HAVE__LOCALTIME64_S) - tmptime = t; - terr = _localtime64_s(&tmbuf, &tmptime); - if (terr) - tm = NULL; - else - tm = &tmbuf; + tm = _localtime64_s(&tmbuf, &t) ? NULL : &tmbuf; #elif defined(HAVE_LOCALTIME_R) tm = localtime_r(&t, &tmbuf); #else |