aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_vty.c
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-10-11 20:48:04 +0200
committerlaforge <laforge@osmocom.org>2020-10-12 13:08:42 +0000
commit9a4cf275b2d2ae03702bd344291332f7e898da51 (patch)
treeca1fe9e1d9ac2ece53be9241c3aac525d518be47 /src/gb/gprs_ns2_vty.c
parent4b6c8afcb2e0c7c366bf0a98138d659055860af3 (diff)
gprs_ns2: const the return value of gprs_ns2_ip_vc_sockaddr / gprs_ns2_ip_bind_sockaddr
The sockaddr should not be changed. free and create the bind/nsvc if the address should be changed. Change-Id: I371ac2361b569e36722b02fc9cd82ec8da2fa9e3
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r--src/gb/gprs_ns2_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 55e87ae1..92c00958 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -247,7 +247,7 @@ static void dump_nsvc(struct vty *vty, struct gprs_ns2_vc *nsvc, bool stats)
{
struct osmo_sockaddr_str remote;
struct osmo_sockaddr_str local;
- struct osmo_sockaddr *sockaddr;
+ const struct osmo_sockaddr *sockaddr;
switch (nsvc->ll) {
case GPRS_NS_LL_UDP: {