Skip to content

Commit 0951178

Browse files
FractalUhishamhm
authored andcommitted
win32: declare lfs_win32_pusherror, windowsToUnixTime, lfs_win32_lstat as static
1 parent 268c2d3 commit 0951178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ typedef struct dir_data {
168168

169169
#ifdef _WIN32
170170

171-
int lfs_win32_pusherror(lua_State * L)
171+
static int lfs_win32_pusherror(lua_State * L)
172172
{
173173
int en = GetLastError();
174174
lua_pushnil(L);
@@ -181,15 +181,15 @@ int lfs_win32_pusherror(lua_State * L)
181181

182182
#define TICKS_PER_SECOND 10000000
183183
#define EPOCH_DIFFERENCE 11644473600LL
184-
time_t windowsToUnixTime(FILETIME ft)
184+
static time_t windowsToUnixTime(FILETIME ft)
185185
{
186186
ULARGE_INTEGER uli;
187187
uli.LowPart = ft.dwLowDateTime;
188188
uli.HighPart = ft.dwHighDateTime;
189189
return (time_t) (uli.QuadPart / TICKS_PER_SECOND - EPOCH_DIFFERENCE);
190190
}
191191

192-
int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer)
192+
static int lfs_win32_lstat(const char *path, STAT_STRUCT * buffer)
193193
{
194194
WIN32_FILE_ATTRIBUTE_DATA win32buffer;
195195
if (GetFileAttributesEx(path, GetFileExInfoStandard, &win32buffer)) {

0 commit comments

Comments
 (0)