Page MenuHomeFreeBSD

kern: mac: sprinkle a bit of const correctness
AcceptedPublic

Authored by kevans on Sat, Mar 7, 3:59 AM.
Tags
None
Referenced Files
F150117803: D55702.diff
Sun, Mar 29, 12:57 PM
Unknown Object (File)
Wed, Mar 25, 1:54 AM
Unknown Object (File)
Fri, Mar 20, 8:31 PM
Unknown Object (File)
Fri, Mar 20, 9:05 AM
Unknown Object (File)
Thu, Mar 12, 9:59 AM
Unknown Object (File)
Mon, Mar 9, 6:37 PM
Unknown Object (File)
Mon, Mar 9, 10:40 AM
Unknown Object (File)
Sun, Mar 8, 10:08 AM
Subscribers

Details

Reviewers
olce
bapt
Summary

mpc_name and mpc_fullname are string literals in correct usage, so they
should really be const instead.

mpc_ops aren't typically const, but the framework shouldn't be doing
anything to clobber it; thus, good to constify it as a reminder.

Switch to using a slightly more semantically correct void ** in the
fastpath bits while we're here, since we only do arithmetic on the outer
layer of pointer and compare the inner to a pointer-typed (NULL).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 71239
Build 68122: arc lint + arc unit