Chore: silence some warnings
This commit is contained in:
1 parent
6500cddc09
commit
8f79d6ab1d
2 files changed
+2
-2
No files matched your search
@@ -37,7 +37,7 @@ static void createSubfolders(const char* fileName)
|
||||
bool ffWriteFileData(const char* fileName, size_t dataSize, const void* data)
|
||||
{
|
||||
int openFlagsModes = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC;
|
||||
int openFlagsRights = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
|
||||
mode_t openFlagsRights = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
|
||||
|
||||
int FF_AUTO_CLOSE_FD fd = open(fileName, openFlagsModes, openFlagsRights);
|
||||
if(fd == -1)
|
||||
|
||||
@@ -521,7 +521,7 @@ static bool getTerminalVersionScreen(FFstrbuf* exe, FFstrbuf* version)
|
||||
{
|
||||
if(!getExeVersionRaw(exe, version)) return false;
|
||||
// Screen version 4.09.01 (GNU) 20-Aug-23
|
||||
ffStrbufSubstrAfter(version, strlen("Screen version ") - 1);
|
||||
ffStrbufSubstrAfter(version, (uint32_t) strlen("Screen version ") - 1);
|
||||
ffStrbufSubstrBeforeFirstC(version, ' ');
|
||||
return version->length > 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user