From a07f25e3bac0f44e84433c35dca5e491a2df59d2 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 9 Oct 2020 21:47:01 +0700 Subject: 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 --- src/gb/gprs_ns2_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gb/gprs_ns2_vty.c') 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; -- cgit v1.2.3