diff options
Diffstat (limited to 'src/lfs.c')
-rw-r--r-- | src/lfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -168,7 +168,7 @@ typedef struct dir_data { | |||
168 | 168 | ||
169 | #ifdef _WIN32 | 169 | #ifdef _WIN32 |
170 | 170 | ||
171 | int lfs_win32_pusherror(lua_State * L) | 171 | static 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 |
184 | time_t windowsToUnixTime(FILETIME ft) | 184 | static 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 | ||
192 | int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer) | 192 | static 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)) { |