Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt swap first, then write.
details: https://anonhg.NetBSD.org/src/rev/984f61b4a31a
branches: trunk
changeset: 344258:984f61b4a31a
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 18 13:23:00 2016 +0000
description:
swap first, then write.
diffstat:
external/cddl/osnet/dist/tools/ctf/cvt/ctf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r f1f22b70c6dc -r 984f61b4a31a external/cddl/osnet/dist/tools/ctf/cvt/ctf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c Fri Mar 18 12:41:25 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c Fri Mar 18 13:23:00 2016 +0000
@@ -173,12 +173,12 @@
{
ushort_t id = (idp ? idp->ii_dtype->t_id : 0);
- ctf_buf_write(b, &id, sizeof (id));
-
if (target_requires_swap) {
SWAP_16(id);
}
+ ctf_buf_write(b, &id, sizeof (id));
+
debug(3, "Wrote object %s (%d)\n", (idp ? idp->ii_name : "(null)"), id);
}
Home |
Main Index |
Thread Index |
Old Index