Raise WARNS to 6 and generally clean up:
authorChris Pressey <cpressey@dragonflybsd.org>
Mon, 10 Jan 2005 20:27:51 +0000 (20:27 +0000)
committerChris Pressey <cpressey@dragonflybsd.org>
Mon, 10 Jan 2005 20:27:51 +0000 (20:27 +0000)
commit0a8b8329dee7c4e52383141ab67af6b296232d3b
tree18fbe305cc1094fe8f2bf19a87dcc9b8b29bfb8e
parentf51af9c064f1635d625f389cf26b39ec6b1e6cfc
Raise WARNS to 6 and generally clean up:
- Constify and use size_t instead of int;
- Merge and add variables as appropriate;
- Use more appropriate printf() format specifier, and replace
  printf() with fwrite() in one instance;
- Replace name2oid() with sysctlnametomib().  Retain old error
  message when the sysctl's name cannot be resolved to a MIB.

Based-on-coincident-patches-by: myself, and Peter Schuller
                        <peter_dot_schuller_at_infidyne_dot_com>
Refined-with-input-from: joerg
OK'ed-by: joerg
sbin/sysctl/Makefile
sbin/sysctl/sysctl.c