First round of fixes for FFPlatform

This commit is contained in:
Linus Dierheimer
2023-01-15 16:06:50 +01:00
parent a1d8e3e598
commit 3ef3cca76b
8 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ void ffPlatformInit(FFPlatform* platform)
ffStrbufInit(&platform->systemVersion);
ffStrbufInit(&platform->systemArchitecture);
ffPlatformInitÎmpl(platform);
ffPlatformInitImpl(platform);
if(platform->domainName.length == 0)
ffStrbufAppend(&platform->domainName, &platform->hostName);
+1 -1
View File
@@ -5,7 +5,7 @@
#include "FFPlatform.h"
void ffPlatformInitÎmpl(FFPlatform* platform);
void ffPlatformInitImpl(FFPlatform* platform);
#define FF_PLATFORM_PATH_UNIQUE(list, element) \
if(ffListFirstIndexComp(list, element, (bool(*)(const void*, const void*))ffStrbufEqual) < list->length - 1) \
+1 -1
View File
@@ -113,7 +113,7 @@ static void getUserShell(FFPlatform* platform, const struct passwd* pwd)
ffStrbufAppendS(&platform->userShell, shell);
}
void ffPlatformInitÎmpl(FFPlatform* platform)
void ffPlatformInitImpl(FFPlatform* platform)
{
struct passwd* pwd = getpwuid(getuid());
+1 -1
View File
@@ -211,7 +211,7 @@ static void getSystemArchitecture(FFPlatform* platform)
}
}
void ffPlatformInitÎmpl(FFPlatform* platform)
void ffPlatformInitImpl(FFPlatform* platform)
{
getHomeDir(platform);
getCacheDir(platform);