mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +00:00
Do a pass of compiler warning fixes.
This is really making me question not using 64-bit integers more.
This commit is contained in:
parent
243e1d8462
commit
58240fdb33
21 changed files with 89 additions and 84 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <AK/printf.cpp>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
|
||||
extern "C" {
|
||||
|
@ -405,6 +406,7 @@ FILE* freopen(const char* pathname, const char* mode, FILE* stream)
|
|||
|
||||
FILE* fdopen(int fd, const char* mode)
|
||||
{
|
||||
UNUSED_PARAM(mode);
|
||||
// FIXME: Verify that the mode matches how fd is already open.
|
||||
if (fd < 0)
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue