HomeFreeBSD

rpc.lockd: Explicitly cast enum nlm_stats values to enum nlm4_stats.

Description

rpc.lockd: Explicitly cast enum nlm_stats values to enum nlm4_stats.

NLM 4 status values are a superset of the older NLM protocol so these
casts are safe while pacifying -Wenum-conversion warnings from GCC.

Reviewed by: rmacklem
Differential Revision: https://reviews.freebsd.org/D36816

Details

Provenance
jhbAuthored on Oct 3 2022, 11:10 PM
Reviewer
rmacklem
Differential Revision
D36816: rpc.lockd: Explicitly cast enum nlm_stats values to enum nlm4_stats.
Parents
rGdb695788fc3d: fortune: Unindent a debug printf in get_fort().
Branches
Unknown
Tags
Unknown