diff options
Diffstat (limited to 'libgcompat/sysctl.c')
-rw-r--r-- | libgcompat/sysctl.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/libgcompat/sysctl.c b/libgcompat/sysctl.c index a14c2b8..e7218c1 100644 --- a/libgcompat/sysctl.c +++ b/libgcompat/sysctl.c @@ -1,6 +1,5 @@ -#include <unistd.h> /* size_t */ #include <sys/syscall.h> - +#include <unistd.h> /* size_t */ #ifdef SYS__sysctl @@ -13,16 +12,15 @@ struct __sysctl_args { size_t newlen; }; - -int sysctl (int *name, int nlen, void *oldval, size_t *oldlenp, void *newval, size_t newlen) { - struct __sysctl_args args = { - .name = name, - .nlen = nlen, - .oldval = oldval, - .oldlenp = oldlenp, - .newval = newval, - .newlen = newlen - }; +int sysctl(int *name, int nlen, void *oldval, size_t *oldlenp, void *newval, + size_t newlen) +{ + struct __sysctl_args args = { .name = name, + .nlen = nlen, + .oldval = oldval, + .oldlenp = oldlenp, + .newval = newval, + .newlen = newlen }; return syscall(SYS__sysctl, &args); } |