1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

Fix all current build warnings in LibC.

This commit is contained in:
Andreas Kling 2018-11-09 10:09:46 +01:00
parent 47b7eeda44
commit e9cdb6bb9b
9 changed files with 19 additions and 17 deletions

View file

@ -49,12 +49,14 @@ void free(void* ptr)
void* calloc(size_t nmemb, size_t)
{
(void) nmemb;
ASSERT_NOT_REACHED();
return nullptr;
}
void* realloc(void *ptr, size_t)
{
(void) ptr;
ASSERT_NOT_REACHED();
return nullptr;
}
@ -62,6 +64,7 @@ void* realloc(void *ptr, size_t)
void exit(int status)
{
Syscall::invoke(Syscall::SC_exit, (dword)status);
for (;;);
}
void abort()
@ -91,7 +94,7 @@ char* getenv(const char* name)
int atoi(const char* str)
{
ssize_t len = strlen(str);
size_t len = strlen(str);
int value = 0;
bool isNegative = false;
for (size_t i = 0; i < len; ++i) {