summaryrefslogtreecommitdiff
path: root/libarchive/archive_entry_copy_bhfi.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-02-16 13:17:12 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2012-02-16 13:17:12 +0900
commit97d9cd37d076d63d95aa187eb360e633f00ab7d6 (patch)
treea18be4ce02b08fca7d930a8e24fc9ee1e0ef0532 /libarchive/archive_entry_copy_bhfi.c
parentbf6fc3be7dde40e7c752762654938d80e5222b48 (diff)
downloadlibarchive-97d9cd37d076d63d95aa187eb360e633f00ab7d6.tar.gz
Fix build failure in aggressive warnings on msys.
Diffstat (limited to 'libarchive/archive_entry_copy_bhfi.c')
-rw-r--r--libarchive/archive_entry_copy_bhfi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libarchive/archive_entry_copy_bhfi.c b/libarchive/archive_entry_copy_bhfi.c
index 7a4bc9cd..77bf38e4 100644
--- a/libarchive/archive_entry_copy_bhfi.c
+++ b/libarchive/archive_entry_copy_bhfi.c
@@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
#define EPOC_TIME ARCHIVE_LITERAL_ULL(116444736000000000)
__inline static void
-fileTimeToUtc(const FILETIME *filetime, time_t *time, long *ns)
+fileTimeToUtc(const FILETIME *filetime, time_t *t, long *ns)
{
ULARGE_INTEGER utc;
@@ -42,10 +42,10 @@ fileTimeToUtc(const FILETIME *filetime, time_t *time, long *ns)
utc.LowPart = filetime->dwLowDateTime;
if (utc.QuadPart >= EPOC_TIME) {
utc.QuadPart -= EPOC_TIME;
- *time = (time_t)(utc.QuadPart / 10000000); /* milli seconds base */
+ *t = (time_t)(utc.QuadPart / 10000000); /* milli seconds base */
*ns = (long)(utc.QuadPart % 10000000) * 100;/* nano seconds base */
} else {
- *time = 0;
+ *t = 0;
*ns = 0;
}
}