Commit 2da60dc5 authored by John van Groningen's avatar John van Groningen
Browse files

refactor to prevent missing prototype warning from the c compiler, in...

refactor to prevent missing prototype warning from the c compiler, in cDirectory.c for unix move function findFirstFileC after function findNextFileC
parent be155109
......@@ -81,17 +81,6 @@ static int openSearch(const char *path, int length)
};
}
int findFirstFileC(CleanString cs_path)
{
int errCode;
errCode = openSearch(CleanStringCharacters(cs_path), CleanStringLength(cs_path));
if (errCode)
return errCode;
else
return findNextFileC(0);
}
void getCommonFileInfoC(long also_get_file_name,
CleanString *pFileName, long *pFileSizeLow, long *pFileSizeHigh,
long *pYear, long *pMonth, long *pDay, long *pDayNr,
......@@ -142,6 +131,17 @@ int findNextFileC(int dummy)
return 0;
}
int findFirstFileC(CleanString cs_path)
{
int errCode;
errCode = openSearch(CleanStringCharacters(cs_path), CleanStringLength(cs_path));
if (errCode)
return errCode;
else
return findNextFileC(0);
}
int getPlatformIdC(int dummy)
{
#define UnixPlatform 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment