diff options
| author | FractalU <r.beckmann@protonmail.com> | 2024-10-28 12:51:08 +0100 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-10-28 20:30:52 +0000 |
| commit | 09511782201302ade916d4b250d01a6c61b56844 (patch) | |
| tree | 09f0716ed939286a4aa4e592a76c904127e870fd | |
| parent | 268c2d38309c820c7fa9fde953559795ca328862 (diff) | |
| download | luafilesystem-master.tar.gz luafilesystem-master.tar.bz2 luafilesystem-master.zip | |
| -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)) { |
