]> git.pond.sub.org Git - empserver/commit
Fix xdump lost column type on big endian hosts
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 29 Apr 2013 19:23:13 +0000 (21:23 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:58 +0000 (06:57 +0200)
commitc64c756eef35fc041befdd1dd385b903ef32a0c9
treed9a2a50207e2f865f1e545d34d9efde372c9219c
parent3c84a8756e31e78727093b906730287effd7819b
Fix xdump lost column type on big endian hosts

Broken in commit 09248d0 (v4.3.8), which changed struct loststr member
lost_type from char to short, but neglected to update the ca_type in
lost_ca[].

On little endian hosts, the selector reads the least significant byte,
with sign extension.  Happens to work, because the type values are all
sufficiently small integers.

On big endian hosts, the selector reads the most signiciant byte,
which is always zero (EF_SECTOR).  Messes up xdump lost badly.  Also
breaks lost * ?type=..., but that's exotic.
src/lib/common/nsc.c
tests/smoke/smoke.out