aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/sgsn_libgtp.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-01-08 14:43:53 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-19 15:11:00 +0000
commit25c65c3d1f39f55340180273201cf91a1d10d741 (patch)
tree43615c9ca564f469e313487339259ee9cb3cb18d /src/gprs/sgsn_libgtp.c
parent6789c84457eb278f4ad144f90c29fd7420899e60 (diff)
Use gsm48_encode_ra() for RAI encoding
It has stricter type signature which increase the chance of spotting misuse either via compiler warning or with automated scan. This also paves the way for gsm48_construct_ra() deprecation in libosmocore. Change-Id: I2c0f082dc7214ed57a40dad0788e34b838dfac97 Related: OS#1640
Diffstat (limited to 'src/gprs/sgsn_libgtp.c')
-rw-r--r--src/gprs/sgsn_libgtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs/sgsn_libgtp.c b/src/gprs/sgsn_libgtp.c
index 1032230ac..ae293f1dd 100644
--- a/src/gprs/sgsn_libgtp.c
+++ b/src/gprs/sgsn_libgtp.c
@@ -268,7 +268,7 @@ struct sgsn_pdp_ctx *sgsn_create_pdp_ctx(struct sgsn_ggsn_ctx *ggsn,
raid = mmctx->ra;
raid.lac = 0xFFFE;
raid.rac = 0xFF;
- gsm48_construct_ra(pdp->rai.v, &raid);
+ gsm48_encode_ra((struct gsm48_ra_id *)pdp->rai.v, &raid);
/* Encode User Location Information accordint to TS 29.060 7.7.51 */
pdp->userloc_given = 1;