summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-11-17 19:09:22 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-11-17 19:09:59 +0700
commit65dbd471fcc46510443494d537f008de909f1a14 (patch)
tree51cb5140ed36cca1cbbdf1be53b26244e33bfccd
parent62164b9eabc07eac0f74d12f2faa01dd6d1d851b (diff)
mobile/gsm48_mm.h: use fixed-size integer types in packed structures
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
index 09d18ed9..bf3aa257 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
@@ -55,7 +55,7 @@
/* MMxx-SAP header */
struct gsm48_mmxx_hdr {
- int msg_type; /* MMxx_* primitive */
+ uint16_t msg_type; /* MMxx_* primitive */
uint32_t ref; /* reference to transaction */
uint32_t transaction_id; /* transaction identifier */
uint8_t sapi; /* sapi */
@@ -71,8 +71,7 @@ struct gsm48_mmxx_hdr {
/* MMR-SAP header */
struct gsm48_mmr {
- int msg_type;
-
+ uint8_t msg_type;
uint8_t cause;
} __attribute__((packed));