HomeFreeBSD

rup: Fix -Wcast-align warnings

Description

rup: Fix -Wcast-align warnings

Fix possible strict aliasing issue (if time_t is the same size as int but
not int but for example long) which also resulted in a false positive
warning on systems with 64-bit time_t. Pointer casts are bad; we can just
copy the time_t.

Elsewhere, avoid casting char * to int * by using memcpy().

Reviewed by: eadler
Differential Revision: https://reviews.freebsd.org/D16075

Details

Provenance
jillesAuthored on
Reviewer
eadler
Differential Revision
D16075: rup: Fix -Wcast-align warnings
Parents
rS335904: Fix module build when MODULE_TIED=1 is set.
Branches
Unknown
Tags
Unknown