diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-10-18 23:50:49 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-10-18 23:50:49 +0200 |
commit | 232b972035f54e51130475765e1de396fbce4620 (patch) | |
tree | d3e33fdd2b8f577226212ece33faa2cbd899dce0 | |
parent | 4a92d0b9b9f43ef15e5af64ace1c212609de4af4 (diff) |
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.
-rw-r--r-- | src/storage.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/storage.h b/src/storage.h index 8144f86..df58ff9 100644 --- a/src/storage.h +++ b/src/storage.h @@ -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); |