OSDN Git Service

libfec: pack the fec_header structure
authorJeremy Compostella <jeremy.compostella@intel.com>
Tue, 10 May 2016 09:53:06 +0000 (11:53 +0200)
committerBadhri Jagan Sridharan <Badhri@google.com>
Thu, 16 Jun 2016 17:09:57 +0000 (10:09 -0700)
commitcf953128e1663b0a96e6d6999c84b008a96fe394
tree5bc9fc95bf4b306416faa162676ba67825e248cb
parentaabbbfde4831c2a9c9c50a3bf38b2a3ff346b8f4
libfec: pack the fec_header structure

The fec_header structure is generated build time and stored on disk.
The fec_header might be build on a 64 bits machine while it is read
per a 32 bits device or the other way around.  In such situations, the
fec_header fields are not aligned as expected by the device and it
fails to read the fec_header structure.

This patch makes the fec_header packed.

Change-Id: I77546f850cea5559909971a1192e1a7616d22d50
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
libfec/include/fec/io.h