LM (Linux): fix compiling

This commit is contained in:
李通洲
2023-07-09 00:36:29 +08:00
parent 30afe7e86b
commit f1667357f5
+2 -2
View File
@@ -60,7 +60,7 @@ static const char* getSddmVersion(FFstrbuf* version)
}
ffStrbufSubstrBefore(version, ffStrbufNextIndexC(version, index, '\n'));
ffStrbufSubstrAfter(version, index + strlen(".TH "));
ffStrbufSubstrAfter(version, index + (uint32_t) strlen(".TH "));
// "SDDM" 1 "May 2014" "sddm 0.20.0" "sddm"
ffStrbufSubstrBeforeLastC(version, ' ');
@@ -95,7 +95,7 @@ static const char* getXfwmVersion(FFstrbuf* version)
static const char* getLightdmVersion(FFstrbuf* version)
{
const char* error = = ffProcessAppendStdOut(version, (char* const[]) {
const char* error = ffProcessAppendStdOut(version, (char* const[]) {
"lightdm",
"--version",
NULL