mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
LibC: Change return type for sleep() to unsigned int
According to POSIX.1-2001 the return type should be unsigned int.
This commit is contained in:
parent
6a808d96b5
commit
546fa8cfb5
2 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ char* getwd(char* buf)
|
|||
return p;
|
||||
}
|
||||
|
||||
int sleep(unsigned seconds)
|
||||
unsigned int sleep(unsigned int seconds)
|
||||
{
|
||||
struct timespec ts = { seconds, 0 };
|
||||
if (clock_nanosleep(CLOCK_MONOTONIC_COARSE, 0, &ts, nullptr) < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue