summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_11.c
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-09 01:47:12 +0100
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2014-03-12 21:24:50 +0400
commitfb96f1f8e1344e28afbe9101ced8e65147de25d3 (patch)
tree859c12d1125b925e6e8c2451d7818e3a951db585 /openbsc/src/libmsc/gsm_04_11.c
parent51052234f8a3809759c945dcb8f88b0da04e241c (diff)
sms: Rename gsm340_gen_oa() to gsm340_gen_address_field().
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_11.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/src/libmsc/gsm_04_11.c b/openbsc/src/libmsc/gsm_04_11.c
index 7c7a632f2..8361d6409 100644
--- a/openbsc/src/libmsc/gsm_04_11.c
+++ b/openbsc/src/libmsc/gsm_04_11.c
@@ -204,11 +204,11 @@ static int gsm340_rx_sms_submit(struct msgb *msg, struct gsm_sms *gsms)
}
/* generate a TPDU address field compliant with 03.40 sec. 9.1.2.5 */
-static int gsm340_gen_oa_sub(uint8_t *oa, unsigned int oa_len,
+static int gsm340_gen_addr_sub(uint8_t *oa, unsigned int oa_len,
const struct gsm_sms_addr *src)
{
/* network specific, private numbering plan */
- return gsm340_gen_oa(oa, oa_len, src->ton, src->npi, src->addr);
+ return gsm340_gen_address_field(oa, oa_len, src->ton, src->npi, src->addr);
}
/* generate a msgb containing an 03.40 9.2.2.1 SMS-DELIVER TPDU derived from
@@ -236,7 +236,7 @@ static int gsm340_gen_sms_deliver_tpdu(struct msgb *msg, struct gsm_sms *sms)
*smsp |= 0x40;
/* generate originator address */
- oa_len = gsm340_gen_oa_sub(oa, sizeof(oa), &sms->src);
+ oa_len = gsm340_gen_addr_sub(oa, sizeof(oa), &sms->src);
smsp = msgb_put(msg, oa_len);
memcpy(smsp, oa, oa_len);