HomeFreeBSD

str(r)chr: Replace union abuse with __DECONST

Description

str(r)chr: Replace union abuse with __DECONST

Writing one union member and reading another is technically illegal C,
although we do it in many places in the tree. Use the __DECONST macro
instead, which is (technically) a valid C construct.

Trivial style(9) cleanups to touched lines while here.

Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS334623: hwpmc: remove gratuitous curthread checks
Branches
Unknown
Tags
Unknown