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)
committerJeremy Compostella <jeremy.compostella@intel.com>
Tue, 17 May 2016 07:56:19 +0000 (09:56 +0200)
commitd2da04cf17a0fd5819249c388c9b6403d75de59d
tree97caef3beb0bc42187110e02eeb675d83545d9bb
parent2597f3521efd5e6f999ad9aa1e0e3dd6304ba3e4
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