Skip to content

Commit 8f79d6a

Browse files
committed
Chore: silence some warnings
1 parent 6500cdd commit 8f79d6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/io/io_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void createSubfolders(const char* fileName)
3737
bool ffWriteFileData(const char* fileName, size_t dataSize, const void* data)
3838
{
3939
int openFlagsModes = O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC;
40-
int openFlagsRights = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
40+
mode_t openFlagsRights = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
4141

4242
int FF_AUTO_CLOSE_FD fd = open(fileName, openFlagsModes, openFlagsRights);
4343
if(fd == -1)

src/detection/terminalshell/terminalshell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ static bool getTerminalVersionScreen(FFstrbuf* exe, FFstrbuf* version)
521521
{
522522
if(!getExeVersionRaw(exe, version)) return false;
523523
// Screen version 4.09.01 (GNU) 20-Aug-23
524-
ffStrbufSubstrAfter(version, strlen("Screen version ") - 1);
524+
ffStrbufSubstrAfter(version, (uint32_t) strlen("Screen version ") - 1);
525525
ffStrbufSubstrBeforeFirstC(version, ' ');
526526
return version->length > 0;
527527
}

0 commit comments

Comments
 (0)