mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibC: Oops x2, we can't use "bool" in stdlib.h either
This commit is contained in:
parent
b1fc5d9143
commit
9d681beaf0
3 changed files with 8 additions and 8 deletions
|
@ -636,7 +636,7 @@ void funlockfile(FILE* filehandle)
|
|||
FILE* tmpfile()
|
||||
{
|
||||
char tmp_path[] = "/tmp/XXXXXX";
|
||||
if (!__generate_unique_filename(tmp_path))
|
||||
if (__generate_unique_filename(tmp_path) < 0)
|
||||
return nullptr;
|
||||
|
||||
int fd = open(tmp_path, O_CREAT | O_EXCL | O_RDWR, S_IWUSR | S_IRUSR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue