summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lcrypt/lcrypt.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/lcrypt/lcrypt.c b/lcrypt/lcrypt.c
index 987638f..18a96f3 100644
--- a/lcrypt/lcrypt.c
+++ b/lcrypt/lcrypt.c
@@ -218,24 +218,24 @@ static int lcrypt_xor(lua_State *L)
}
#ifdef _WIN32
-
-static const unsigned __int64 epoch = 116444736000000000ULL;
-
-static int gettimeofday(struct timeval * tp, struct timezone * tzp)
-{
- FILETIME file_time;
- SYSTEMTIME system_time;
- ULARGE_INTEGER ularge;
-
- GetSystemTime(&system_time);
- SystemTimeToFileTime(&system_time, &file_time);
- ularge.LowPart = file_time.dwLowDateTime;
- ularge.HighPart = file_time.dwHighDateTime;
-
- tp->tv_sec = (long)((ularge.QuadPart - epoch) / 10000000L);
- tp->tv_usec = (long)(system_time.wMilliseconds * 1000);
-
- return 0;
+
+static const unsigned __int64 epoch = 116444736000000000ULL;
+
+static int gettimeofday(struct timeval * tp, struct timezone * tzp)
+{
+ FILETIME file_time;
+ SYSTEMTIME system_time;
+ ULARGE_INTEGER ularge;
+
+ GetSystemTime(&system_time);
+ SystemTimeToFileTime(&system_time, &file_time);
+ ularge.LowPart = file_time.dwLowDateTime;
+ ularge.HighPart = file_time.dwHighDateTime;
+
+ tp->tv_sec = (long)((ularge.QuadPart - epoch) / 10000000L);
+ tp->tv_usec = (long)(system_time.wMilliseconds * 1000);
+
+ return 0;
}
#endif
@@ -249,10 +249,10 @@ static int lcrypt_time(lua_State *L)
return(1);
}
-#ifdef UNICODE
-#define _T(x) L##x
-#else
-#define _T(x) x
+#ifdef UNICODE
+#define _T(x) L##x
+#else
+#define _T(x) x
#endif
static int lcrypt_random(lua_State *L)