diff options
| author | 2001-02-27 23:44:08 +0000 | |
|---|---|---|
| committer | 2001-02-27 23:44:08 +0000 | |
| commit | 900ef48d4a6ed39cea5028939eb8eeeee17c6a67 (patch) | |
| tree | f2ea5773e66cf7b646aa668ecc09ae0ea5a77919 | |
| parent | Add libraw1394 autoconf macro (not yet complete). (diff) | |
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
Diffstat (limited to '')
| -rw-r--r-- | src/eventloop.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <config.h> #include <unistd.h> +#include <byteswap.h> #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]) { |
