storage.h: make sure we use packed attribute not aligned.

This was a stupid mistake when writing the header initially, let's try
to fix it while staying binary compatible.
This commit is contained in:
Harald Welte 2016-10-18 23:50:49 +02:00
parent 4a92d0b9b9
commit 232b972035
1 changed files with 6 additions and 1 deletions

View File

@ -22,6 +22,11 @@ struct osmo_e1cap_pkthdr {
uint8_t capture_mode;
/* any optional future flags */
uint8_t flags;
} __attribute__((aligned));
uint8_t align[8];
uint8_t data[0];
} __attribute__((packed));
struct msgb;
struct e1inp_ts;
int e1frame_store(struct e1inp_ts *ts, struct msgb *msg, enum osmo_e1cap_capture_mode mode);