gprs_ns2: make nsvc argument const

The nsvc isn't change. It can be const

Change-Id: Ie5052f02781d7fdc639456c6f02515a927cee1f3
This commit is contained in:
Alexander Couzens 2020-12-10 04:10:07 +01:00 committed by lynxis lazus
parent 90ee963570
commit 22c26e0610
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ int gprs_ns2_frgre_bind(struct gprs_ns2_inst *nsi,
int dscp,
struct gprs_ns2_vc_bind **result);
int gprs_ns2_is_frgre_bind(struct gprs_ns2_vc_bind *bind);
uint16_t gprs_ns2_fr_nsvc_dlci(struct gprs_ns2_vc *nsvc);
uint16_t gprs_ns2_fr_nsvc_dlci(const struct gprs_ns2_vc *nsvc);
struct gprs_ns2_vc *gprs_ns2_nsvc_by_sockaddr_nse(
struct gprs_ns2_nse *nse,

View File

@ -714,7 +714,7 @@ struct gprs_ns2_vc *gprs_ns2_fr_nsvc_by_dlci(struct gprs_ns2_vc_bind *bind,
* \param[in] nsvc
* \return the dlci or 0 on error. 0 is not a valid dlci.
*/
uint16_t gprs_ns2_fr_nsvc_dlci(struct gprs_ns2_vc *nsvc)
uint16_t gprs_ns2_fr_nsvc_dlci(const struct gprs_ns2_vc *nsvc)
{
struct priv_vc *vcpriv;