diff --git a/src/detection/gpu/gpu_bsd.c b/src/detection/gpu/gpu_bsd.c index 6f5a9c9a0..20556b66f 100644 --- a/src/detection/gpu/gpu_bsd.c +++ b/src/detection/gpu/gpu_bsd.c @@ -147,7 +147,7 @@ static const char* detectByDrm(const FFGPUOptions* options, FFlist* gpus) static const char* detectByPci(const FFGPUOptions* options, FFlist* gpus) { - FF_AUTO_CLOSE_FD int fd = open("/dev/pci", O_RDONLY | O_CLOEXEC, 0); + FF_AUTO_CLOSE_FD int fd = open("/dev/pci", O_RDONLY | O_CLOEXEC); if (fd < 0) return "open(\"/dev/pci\", O_RDONLY | O_CLOEXEC, 0) failed"; diff --git a/src/util/binary_linux.c b/src/util/binary_linux.c index 725ccb60e..a723243cd 100644 --- a/src/util/binary_linux.c +++ b/src/util/binary_linux.c @@ -63,7 +63,7 @@ const char* ffBinaryExtractStrings(const char* elfFile, bool (*cb)(const char* s return "load libelf failed"; // Open the ELF file - FF_AUTO_CLOSE_FD int fd = open(elfFile, O_RDONLY | O_CLOEXEC, 0); + FF_AUTO_CLOSE_FD int fd = open(elfFile, O_RDONLY | O_CLOEXEC); if (fd < 0) return "open() failed"; Elf* elf = elfData.ffelf_begin(fd, ELF_C_READ, NULL);