summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-02-21 13:57:02 +0000
committered <ed@FreeBSD.org>2010-02-21 13:57:02 +0000
commit1fdea921e1450bf99dc432803cd6c88e08540a21 (patch)
treefcb4fe1d12f11b6cab916731649d8e0d8c2645b0 /contrib
parent24f8e6df2531b9453d13e5fc72bb019b22e630a8 (diff)
downloadFreeBSD-src-1fdea921e1450bf99dc432803cd6c88e08540a21.zip
FreeBSD-src-1fdea921e1450bf99dc432803cd6c88e08540a21.tar.gz
Add proper const keywords to sysctl(3) parameters.
The `name' and `newp' arguments can be marked const, because the buffers they refer to are never changed. While there, perform some other cleanups: - Remove K&R from sysctl.c. - Implement sysctlbyname() using sysctlnametomib() to prevent duplication of an undocumented kernel interface. - Fix some whitespace nits. It seems the prototypes are now in sync with NetBSD as well.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud