diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-01-03 23:11:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-01-03 23:11:07 +0000 |
commit | 5084311c58e8aa0ac1b5a65779a687a9e8ee4a29 (patch) | |
tree | 307cb6a371d20f6ee0496b7fc0bc70813345c225 /etc/mtree | |
parent | 050dc7bf0f38acd812e081a11a1a0ba12e8a5dae (diff) |
assign 1 instead of the result of htole16(1) to a uint8_t.
on big endian archs the 1 is shifted to the high byte, which then
gets lost when it's assigned to the uint8_t. at worst we lose the
value, at best the compiler has a teary and fixes it.
this is the fix for a compiler teary.
ok claudio@
Diffstat (limited to 'etc/mtree')
0 files changed, 0 insertions, 0 deletions