From 383a221c5c70b664424cb0e48d04160c60aa3b24 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 25 May 2014 00:09:36 -0700 Subject: Fixing EOL. --- lcrypt/lcrypt.c | 44 ++++++++++++++++++++++---------------------- 1 file 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) -- cgit v1.2.3