diff options
author | 2013-06-09 13:10:17 +0000 | |
---|---|---|
committer | 2013-06-09 13:10:17 +0000 | |
commit | f0fbce36fad4d957868cf7c68948e862c681ea4a (patch) | |
tree | 1cc21765abe837ff239b5ad394b24b87dfd318c9 /lib/libc/gen/sysctl.c | |
parent | add some basic descriptions for the fuse sysctls (diff) | |
download | wireguard-openbsd-f0fbce36fad4d957868cf7c68948e862c681ea4a.tar.xz wireguard-openbsd-f0fbce36fad4d957868cf7c68948e862c681ea4a.zip |
Constify the mib argument of sysctl().
ok matthew@ millert@
Diffstat (limited to 'lib/libc/gen/sysctl.c')
-rw-r--r-- | lib/libc/gen/sysctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/sysctl.c b/lib/libc/gen/sysctl.c index 941ae1aafd5..b0eea554bcb 100644 --- a/lib/libc/gen/sysctl.c +++ b/lib/libc/gen/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.8 2013/04/15 16:47:14 guenther Exp $ */ +/* $OpenBSD: sysctl.c,v 1.9 2013/06/09 13:10:17 miod Exp $ */ /*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. @@ -31,10 +31,10 @@ #include <sys/param.h> #include <sys/sysctl.h> -int __sysctl(int *, u_int, void *, size_t *, void *, size_t); +int __sysctl(const int *, u_int, void *, size_t *, void *, size_t); int -sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, +sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) { return (__sysctl(name, namelen, oldp, oldlenp, newp, newlen)); |