From cde08a14641a3a0d4b05eb84abad14787edea3bf Mon Sep 17 00:00:00 2001 From: FractalU Date: Mon, 28 Oct 2024 12:51:08 +0100 Subject: [PATCH] win32: declare lfs_win32_pusherror, windowsToUnixTime, lfs_win32_lstat as static --- src/lfs.c | 6 +++--- 1 file 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 { #ifdef _WIN32 -int lfs_win32_pusherror(lua_State * L) +static int lfs_win32_pusherror(lua_State * L) { int en = GetLastError(); lua_pushnil(L); @@ -181,7 +181,7 @@ int lfs_win32_pusherror(lua_State * L) #define TICKS_PER_SECOND 10000000 #define EPOCH_DIFFERENCE 11644473600LL -time_t windowsToUnixTime(FILETIME ft) +static time_t windowsToUnixTime(FILETIME ft) { ULARGE_INTEGER uli; uli.LowPart = ft.dwLowDateTime; @@ -189,7 +189,7 @@ time_t windowsToUnixTime(FILETIME ft) return (time_t) (uli.QuadPart / TICKS_PER_SECOND - EPOCH_DIFFERENCE); } -int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer) +static int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer) { WIN32_FILE_ATTRIBUTE_DATA win32buffer; if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) {