1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibC: Remove ASSERT_NOT_REACHED in getrusage

The gcc port was hitting that assertion for some reason.

This patch fixes it.
This commit is contained in:
Itamar 2020-05-04 11:41:31 +03:00 committed by Andreas Kling
parent 0a55679de4
commit 2cafc36d9c

View file

@ -25,8 +25,8 @@
*/
#include <assert.h>
#include <ulimit.h>
#include <sys/resource.h>
#include <ulimit.h>
extern "C" {
@ -38,12 +38,10 @@ long ulimit(int cmd, long newlimit)
return -1;
}
int getrusage(int who, struct rusage *usage)
int getrusage(int who, struct rusage* usage)
{
(void)who;
(void)usage;
ASSERT_NOT_REACHED();
return -1;
}
}