aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
authorAndreas.Eversberg <Andreas.Eversberg@versatel.de>2010-06-17 16:32:38 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-17 17:40:07 +0200
commit2db4d46680332a83328553a147582f625bb05736 (patch)
treef0f2ec7b43510843edaf834787a6f94c0d810ba6 /openbsc/src/gsm_04_11.c
parent71d36b3d044c7112d43eac8ae4f54134022fbd3a (diff)
AW: Problem compiling OpenBSC on Kubuntu Hardy
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r--openbsc/src/gsm_04_11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index cb7cf852..1a17dd94 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -354,14 +354,14 @@ static unsigned long gsm340_validity_period(u_int8_t sms_vpf, u_int8_t *sms_vp)
/* ignore additional fi */
if (fi & (1<<7)) sms_vp++;
/* read validity period format */
- switch (fi & 0b111) {
- case 0b000:
+ switch (fi & 0x7) {
+ case 0x0:
return gsm340_vp_default(); /* no vpf specified */
- case 0b001:
+ case 0x1:
return gsm340_vp_relative(sms_vp);
- case 0b010:
+ case 0x2:
return gsm340_vp_relative_integer(sms_vp);
- case 0b011:
+ case 0x3:
return gsm340_vp_relative_semioctet(sms_vp);
default:
/* The GSM spec says that the SC should reject any