aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_vty.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-09 21:47:01 +0700
committerlaforge <laforge@osmocom.org>2020-10-09 15:24:09 +0000
commita07f25e3bac0f44e84433c35dca5e491a2df59d2 (patch)
tree315f18fbd6338ff814ef98f53f765f1318d22d70 /src/gb/gprs_ns2_vty.c
parentdef5a407c108c73aaaf73cfe8f434250d8006b91 (diff)
gprs_ns2: make struct osmo_sockaddr pointers const
Using the 'const' qualifier allows the compiler to spot some programming errors and further optimize the code. Change-Id: I0df6a00ac1830bd64a10b9336b827e113fa772bb
Diffstat (limited to 'src/gb/gprs_ns2_vty.c')
-rw-r--r--src/gb/gprs_ns2_vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index c6c4b028..55e87ae1 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -707,7 +707,8 @@ DEFUN(logging_fltr_nsvc,
* \param[in] default_bind set the default address to bind to. Can be NULL.
* \return 0 on success
*/
-int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi, struct osmo_sockaddr_str *default_bind)
+int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi,
+ const struct osmo_sockaddr_str *default_bind)
{
static bool vty_elements_installed = false;