Page MenuHomeFreeBSD

kern: mac: sprinkle a bit of const correctness
Needs ReviewPublic

Authored by kevans on Sat, Mar 7, 3:59 AM.

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