aboutsummaryrefslogtreecommitdiff
path: root/CPP/Windows/TimeUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/Windows/TimeUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CPP/Windows/TimeUtils.cpp b/CPP/Windows/TimeUtils.cpp
index 77d2c51..e80ae13 100644
--- a/CPP/Windows/TimeUtils.cpp
+++ b/CPP/Windows/TimeUtils.cpp
@@ -258,7 +258,7 @@ void GetCurUtc_FiTime(CFiTime &ft) throw()
258 258
259 FiTime_Clear(ft); 259 FiTime_Clear(ft);
260 struct timeval now; 260 struct timeval now;
261 if (gettimeofday(&now, 0 ) == 0) 261 if (gettimeofday(&now, NULL) == 0)
262 { 262 {
263 ft.tv_sec = now.tv_sec; 263 ft.tv_sec = now.tv_sec;
264 ft.tv_nsec = now.tv_usec * 1000; 264 ft.tv_nsec = now.tv_usec * 1000;
@@ -272,7 +272,7 @@ void GetCurUtcFileTime(FILETIME &ft) throw()
272{ 272{
273 UInt64 v = 0; 273 UInt64 v = 0;
274 struct timeval now; 274 struct timeval now;
275 if (gettimeofday(&now, 0 ) == 0) 275 if (gettimeofday(&now, NULL) == 0)
276 { 276 {
277 v = ((UInt64)now.tv_sec + kUnixTimeOffset) * 277 v = ((UInt64)now.tv_sec + kUnixTimeOffset) *
278 kNumTimeQuantumsInSecond + (UInt64)now.tv_usec * 10; 278 kNumTimeQuantumsInSecond + (UInt64)now.tv_usec * 10;