]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sysctl: Misc code cleanup
authorRyan Moeller <freqlabs@FreeBSD.org>
Sat, 24 Oct 2020 16:05:37 +0000 (16:05 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Sat, 24 Oct 2020 16:05:37 +0000 (16:05 +0000)
commit8077b9bc603ba83cd9785410043a28528a7a3b9f
treecc889d1ed6c76c65232dbd766b56256d7da532c7
parent6f26c71d76bb795b30684affb3b57870a7926b26
sysctl: Misc code cleanup

* Use defined SYS_SYSCTL names
* Use memcmp instead of explicit loop
* Use NULL instead of 0 for pointer value
* Use __FBSDID
* Reformat, improve comments in parse()

No functional changes.

Reviewed by: imp
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D26832
sbin/sysctl/sysctl.c