aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gb_proxy_patch.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-08-15 14:11:22 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-08-15 14:11:30 +0200
commit107fb59e84b12bbf6bdfdd4fc241dbcda7332706 (patch)
tree3bbb8af472acf9a2ced41658070c0f237c8c6578 /src/gprs/gb_proxy_patch.c
parent816a67d59dfebcb814e6390e52c9ec0f3e0678c0 (diff)
Drop gprs_msgb_resize_area with libosmocore replacement
gprs_msgb_resize_area was introduced in libosmocore 0.94 (f78ec5ce0d0f6038147d9b9e14d81094309ba5d5) as msgb_resize_area. Let's use that one to avoid code duplication. Change-Id: Ib80f7b2b186d87f21d63d9b0bec58175170c905c
Diffstat (limited to 'src/gprs/gb_proxy_patch.c')
-rw-r--r--src/gprs/gb_proxy_patch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gprs/gb_proxy_patch.c b/src/gprs/gb_proxy_patch.c
index 496f605d..9cca9a86 100644
--- a/src/gprs/gb_proxy_patch.c
+++ b/src/gprs/gb_proxy_patch.c
@@ -112,7 +112,7 @@ static void gbproxy_patch_apn_ie(struct msgb *msg,
osmo_apn_to_str(str1, apn, apn_len));
*new_apn_ie_len = 0;
- gprs_msgb_resize_area(msg, apn_ie, apn_ie_len, 0);
+ msgb_resize_area(msg, apn_ie, apn_ie_len, 0);
} else {
/* Resize the IE */
char str1[110];
@@ -129,7 +129,7 @@ static void gbproxy_patch_apn_ie(struct msgb *msg,
peer->cfg->core_apn_size));
*new_apn_ie_len = peer->cfg->core_apn_size + 2;
- gprs_msgb_resize_area(msg, apn, apn_len, peer->cfg->core_apn_size);
+ msgb_resize_area(msg, apn, apn_len, peer->cfg->core_apn_size);
memcpy(apn, peer->cfg->core_apn, peer->cfg->core_apn_size);
hdr->apn_len = peer->cfg->core_apn_size;
}
@@ -463,4 +463,3 @@ int gbproxy_check_imsi(struct gbproxy_match *match,
return 1;
}
-