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@
-/* $OpenBSD: malo.c,v 1.116 2017/10/26 15:00:28 mpi Exp $ */
+/* $OpenBSD: malo.c,v 1.117 2018/01/03 23:11:06 dlg Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
goto fail;
}
- desc->status = htole16(1);
+ desc->status = 1;
desc->physdata = htole32(data->map->dm_segs->ds_addr);
desc->physnext = htole32(ring->physaddr +
(i + 1) % count * sizeof(struct malo_rx_desc));