summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_11.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-16 13:34:52 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-16 13:34:52 +0200
commit258c713343ff61bd633a09931cf9695bf460a607 (patch)
treed69ca64079c70fdc21ec96493db9a373c0bdfeb4 /openbsc/src/libmsc/gsm_04_11.c
parentd1476bc603ff0411cc72ffa1af6422bb5d8f5f57 (diff)
gsm_04_11: use 'unsigned int sms_alphabet' to include 0xffffffff
Detected by Smatch
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_11.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index ba72c37..ee7f577 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -554,7 +554,8 @@ static int gsm340_rx_tpdu(struct gsm_subscriber_connection *conn, struct msgb *m
{
uint8_t *smsp = msgb_sms(msg);
struct gsm_sms *gsms;
- uint8_t sms_mti, sms_mms, sms_vpf, sms_alphabet, sms_rp;
+ unsigned int sms_alphabet;
+ uint8_t sms_mti, sms_mms, sms_vpf, sms_rp;
uint8_t *sms_vp;
uint8_t da_len_bytes;
uint8_t address_lv[12]; /* according to 03.40 / 9.1.2.5 */