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 Jun 4 2018, 6:47 PM
Parents
rGcf823003a702: hwpmc: remove gratuitous curthread checks
Branches
Unknown
Tags
Unknown

Event Timeline