Page MenuHomeFreeBSD

sysctl: use names instead of magic numbers
ClosedPublic

Authored by kaktus on Sep 17 2019, 10:55 PM.
Tags
None
Referenced Files
F171598898: D21693.id62270.diff
Sat, Sep 12, 1:05 AM
F171588847: D21693.diff
Fri, Sep 11, 11:01 PM
Unknown Object (File)
Fri, Sep 11, 1:12 AM
Unknown Object (File)
Fri, Sep 11, 12:28 AM
Unknown Object (File)
Thu, Sep 10, 10:41 PM
Unknown Object (File)
Thu, Sep 10, 1:18 AM
Unknown Object (File)
Sat, Sep 5, 7:56 PM
Unknown Object (File)
Sat, Sep 5, 3:14 AM
Subscribers

Details

Summary

Replace magic numbers with names for internal sysctl operations.
Convert in-kernel and libc consumers.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib added inline comments.
sys/kern/kern_sysctl.c
939 ↗(On Diff #62240)

Please add space after comma

This revision is now accepted and ready to land.Sep 18 2019, 6:33 AM
kaktus edited the summary of this revision. (Show Details)

Add space after comma.

This revision now requires review to proceed.Sep 18 2019, 8:30 AM
This revision was not accepted when it landed; it landed in state Needs Review.Sep 18 2019, 4:13 PM
This revision was automatically updated to reflect the committed changes.