summaryrefslogtreecommitdiff
path: root/lcrypt/lcrypt.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-05-25 00:09:36 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-05-25 00:09:36 -0700
commit383a221c5c70b664424cb0e48d04160c60aa3b24 (patch)
treeb2c8de85a829e4f0f77ad954ffad16e6382de0fe /lcrypt/lcrypt.c
parent2bb31556caad644db0ce6d1c7dd55fcbca174e0e (diff)
Fixing EOL.
Diffstat (limited to 'lcrypt/lcrypt.c')
-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)