aboutsummaryrefslogtreecommitdiff
path: root/tests/stubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stubs.h')
-rw-r--r--tests/stubs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/stubs.h b/tests/stubs.h
index c77b8db6..780ac772 100644
--- a/tests/stubs.h
+++ b/tests/stubs.h
@@ -10,12 +10,12 @@
#ifndef STUBS_H
#define STUBS_H
-#include <stdint.h>
-#ifdef _WIN32
+#ifdef _WIN32
#include <windows.h>
#else
-#include <time.h>
+#include <stdint.h>
#include <sys/time.h>
+#include <time.h>
#endif
// Stub handlers for some common things.
@@ -23,10 +23,10 @@
uint64_t
getms(void)
{
-#ifdef _WIN32
- return (GetTickCount64()) ;
+#ifdef _WIN32
+ return (GetTickCount64());
#else
- static time_t epoch;
+ static time_t epoch;
struct timeval tv;
if (epoch == 0) {
@@ -40,8 +40,8 @@ getms(void)
return (0);
}
tv.tv_sec -= epoch;
- return (((uint64_t)(tv.tv_sec ) * 1000) + (tv.tv_usec / 1000));
+ return (((uint64_t)(tv.tv_sec) * 1000) + (tv.tv_usec / 1000));
#endif
}
-#endif // STUBS_H \ No newline at end of file
+#endif // STUBS_H