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

(cherry picked from commit 3b887005b4bb215e0e052ae81fe31c2c0d5f4f35)

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
rG44c1914ee672: powerpc_nvram: Fix a bug in the adler32 checksum.
Branches
Unknown
Tags
Unknown