From 900ef48d4a6ed39cea5028939eb8eeeee17c6a67 Mon Sep 17 00:00:00 2001 From: aeb Date: Tue, 27 Feb 2001 23:44:08 +0000 Subject: [PATCH] Let received iso header be big endian, to be consistent. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@54 53a565d1-3bb7-0310-b661-cf11e63c67ab --- src/eventloop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eventloop.c b/src/eventloop.c index 080d42a..7f1f519 100644 --- a/src/eventloop.c +++ b/src/eventloop.c @@ -10,6 +10,7 @@ #include #include +#include #include "raw1394.h" #include "kernel-raw1394.h" @@ -46,7 +47,7 @@ int raw1394_loop_iterate(struct raw1394_handle *handle) case RAW1394_REQ_ISO_RECEIVE: channel = (handle->buffer[0] >> 8) & 0x3f; #ifndef WORDS_BIGENDIAN - /* swap(buffer[0]); */ + handle->buffer[0] = bswap_32(handle->buffer[0]); #endif if (handle->iso_handler[channel]) {