libosmocore/gsm: Fixed total size of gsm48_req_ref

"__attribute ((packed))" must be defined for unions, in order to make
sure that the compiler packs unions.
This commit is contained in:
Andreas Eversberg 2012-02-07 20:02:17 +01:00 committed by Harald Welte
parent 07b625dd2c
commit 4b332d7d0e
1 changed files with 3 additions and 3 deletions

View File

@ -213,15 +213,15 @@ struct gsm48_chan_desc {
tsc:3;
uint8_t hsn:6,
maio_low:2;
} h1;
} __attribute__ ((packed)) h1;
struct {
uint8_t arfcn_high:2,
spare:2,
h:1,
tsc:3;
uint8_t arfcn_low;
} h0;
};
} __attribute__ ((packed)) h0;
} __attribute__ ((packed));
} __attribute__ ((packed));
/* Chapter 10.5.2.20 */