aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lfs.c b/src/lfs.c
index f93db95..b51470c 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -168,7 +168,7 @@ typedef struct dir_data {
168 168
169#ifdef _WIN32 169#ifdef _WIN32
170 170
171int lfs_win32_pusherror(lua_State * L) 171static int lfs_win32_pusherror(lua_State * L)
172{ 172{
173 int en = GetLastError(); 173 int en = GetLastError();
174 lua_pushnil(L); 174 lua_pushnil(L);
@@ -181,7 +181,7 @@ int lfs_win32_pusherror(lua_State * L)
181 181
182#define TICKS_PER_SECOND 10000000 182#define TICKS_PER_SECOND 10000000
183#define EPOCH_DIFFERENCE 11644473600LL 183#define EPOCH_DIFFERENCE 11644473600LL
184time_t windowsToUnixTime(FILETIME ft) 184static time_t windowsToUnixTime(FILETIME ft)
185{ 185{
186 ULARGE_INTEGER uli; 186 ULARGE_INTEGER uli;
187 uli.LowPart = ft.dwLowDateTime; 187 uli.LowPart = ft.dwLowDateTime;
@@ -189,7 +189,7 @@ time_t windowsToUnixTime(FILETIME ft)
189 return (time_t) (uli.QuadPart / TICKS_PER_SECOND - EPOCH_DIFFERENCE); 189 return (time_t) (uli.QuadPart / TICKS_PER_SECOND - EPOCH_DIFFERENCE);
190} 190}
191 191
192int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer) 192static int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer)
193{ 193{
194 WIN32_FILE_ATTRIBUTE_DATA win32buffer; 194 WIN32_FILE_ATTRIBUTE_DATA win32buffer;
195 if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) { 195 if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) {