1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:58:11 +00:00

LibC: Run clang-format on everything.

This commit is contained in:
Andreas Kling 2019-06-07 11:49:03 +02:00
parent 892acfb10d
commit 46527b72d7
40 changed files with 181 additions and 234 deletions

View file

@ -1,6 +1,6 @@
#include <sched.h>
#include <errno.h>
#include <Kernel/Syscall.h>
#include <errno.h>
#include <sched.h>
extern "C" {
@ -22,17 +22,15 @@ int sched_get_priority_max(int policy)
return 3; // High
}
int sched_setparam(pid_t pid, const struct sched_param *param)
int sched_setparam(pid_t pid, const struct sched_param* param)
{
int rc = syscall(SC_sched_setparam, pid, param);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int sched_getparam(pid_t pid, struct sched_param *param)
int sched_getparam(pid_t pid, struct sched_param* param)
{
int rc = syscall(SC_sched_getparam, pid, param);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}