summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_win/os_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/os_win/os_time.c')
-rw-r--r--src/third_party/wiredtiger/src/os_win/os_time.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/third_party/wiredtiger/src/os_win/os_time.c b/src/third_party/wiredtiger/src/os_win/os_time.c
index 81544290215..52eb5867fa4 100644
--- a/src/third_party/wiredtiger/src/os_win/os_time.c
+++ b/src/third_party/wiredtiger/src/os_win/os_time.c
@@ -10,35 +10,34 @@
/*
* __wt_epoch_raw --
- * Return the time since the Epoch as reported by the system.
+ * Return the time since the Epoch as reported by the system.
*/
void
__wt_epoch_raw(WT_SESSION_IMPL *session, struct timespec *tsp)
{
- FILETIME time;
- uint64_t ns100;
+ FILETIME time;
+ uint64_t ns100;
- WT_UNUSED(session);
+ WT_UNUSED(session);
- GetSystemTimeAsFileTime(&time);
+ GetSystemTimeAsFileTime(&time);
- ns100 = (((int64_t)time.dwHighDateTime << 32) + time.dwLowDateTime)
- - 116444736000000000LL;
- tsp->tv_sec = ns100 / 10000000;
- tsp->tv_nsec = (long)((ns100 % 10000000) * 100);
+ ns100 = (((int64_t)time.dwHighDateTime << 32) + time.dwLowDateTime) - 116444736000000000LL;
+ tsp->tv_sec = ns100 / 10000000;
+ tsp->tv_nsec = (long)((ns100 % 10000000) * 100);
}
/*
* __wt_localtime --
- * Return the current local broken-down time.
+ * Return the current local broken-down time.
*/
int
__wt_localtime(WT_SESSION_IMPL *session, const time_t *timep, struct tm *result)
{
- errno_t err;
+ errno_t err;
- if ((err = localtime_s(result, timep)) == 0)
- return (0);
+ if ((err = localtime_s(result, timep)) == 0)
+ return (0);
- WT_RET_MSG(session, err, "localtime_s");
+ WT_RET_MSG(session, err, "localtime_s");
}