mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
swapping byte order before output if necessary
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@215 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
parent
9d0d4423d0
commit
0f8a0ceb52
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ void msg_swap(struct msg *m)
|
|||
|
||||
int msg_fprint(FILE *f, struct msg *m)
|
||||
{
|
||||
assert(m->endian == MSG_ENDIAN_HOST);
|
||||
if (m->endian != MSG_ENDIAN_HOST)
|
||||
msg_swap(m);
|
||||
|
||||
fprintf(f, "%-8hu", m->sequence);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue