diff options
author | 2004-05-18 02:05:52 +0000 | |
---|---|---|
committer | 2004-05-18 02:05:52 +0000 | |
commit | 73b3e3c43784cb5fd04439d34c7436bbf85871db (patch) | |
tree | 71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/sysctl.c | |
parent | sync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff) | |
download | wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.tar.xz wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.zip |
ansify function definitions and zap some `register'
ok millert@
Diffstat (limited to 'lib/libc/gen/sysctl.c')
-rw-r--r-- | lib/libc/gen/sysctl.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libc/gen/sysctl.c b/lib/libc/gen/sysctl.c index 03e0b9bb567..dbba85999fa 100644 --- a/lib/libc/gen/sysctl.c +++ b/lib/libc/gen/sysctl.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: sysctl.c,v 1.5 2003/06/02 20:18:35 millert Exp $"; +static char rcsid[] = "$OpenBSD: sysctl.c,v 1.6 2004/05/18 02:05:52 jfb Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -44,13 +44,8 @@ static char rcsid[] = "$OpenBSD: sysctl.c,v 1.5 2003/06/02 20:18:35 millert Exp int __sysctl(int *, u_int, void *, size_t *, void *, size_t); int -sysctl(name, namelen, oldp, oldlenp, newp, newlen) - int *name; - u_int namelen; - void *oldp; - size_t *oldlenp; - void *newp; - size_t newlen; +sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, + size_t newlen) { if (name[0] != CTL_USER) return (__sysctl(name, namelen, oldp, oldlenp, newp, newlen)); |