diff options
author | ed <ed@FreeBSD.org> | 2010-02-21 13:57:02 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-02-21 13:57:02 +0000 |
commit | 1fdea921e1450bf99dc432803cd6c88e08540a21 (patch) | |
tree | fcb4fe1d12f11b6cab916731649d8e0d8c2645b0 /contrib | |
parent | 24f8e6df2531b9453d13e5fc72bb019b22e630a8 (diff) | |
download | FreeBSD-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