]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cap_sysctl.3: Fix bugs in the example
authorMark Johnston <markj@FreeBSD.org>
Wed, 28 Apr 2021 14:38:52 +0000 (10:38 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 5 May 2021 15:01:56 +0000 (11:01 -0400)
commit11af9a9cf930123ba164ffc63976fe1d67ce614e
tree98453e4935bc3ae430418b2eea73d4d6e5eae1fd
parent9d45365e332114459e46509e4d9aa31c81ce32a7
cap_sysctl.3: Fix bugs in the example

- Correct the type of the sysctl value.
- Initialize the oldsize parameter to cap_sysctlbyname()

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 44bbda649dc6c1cdc5a99641e14c77157967e140)
lib/libcasper/services/cap_sysctl/cap_sysctl.3