GPRS: constify NS printing routine parameters

Change-Id: I549ab7c26ac1489e01f281594bafe44b0681dc83
This commit is contained in:
Max 2017-10-24 18:18:55 +02:00 committed by Harald Welte
parent 296511befc
commit cbf5cdfe7e
3 changed files with 4 additions and 4 deletions

View File

@ -194,7 +194,7 @@ int gprs_nsvc_reset(struct gprs_nsvc *nsvc, uint8_t cause);
int gprs_ns_vty_init(struct gprs_ns_inst *nsi);
/* Resturn peer info as string (NOTE: the buffer is allocated statically) */
const char *gprs_ns_ll_str(struct gprs_nsvc *nsvc);
const char *gprs_ns_ll_str(const struct gprs_nsvc *nsvc);
/* Copy the link layer info from other into nsvc */
void gprs_ns_ll_copy(struct gprs_nsvc *nsvc, struct gprs_nsvc *other);

View File

@ -1170,7 +1170,7 @@ int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
return rc;
}
const char *gprs_ns_ll_str(struct gprs_nsvc *nsvc)
const char *gprs_ns_ll_str(const struct gprs_nsvc *nsvc)
{
static char buf[80];

View File

@ -156,7 +156,7 @@ DEFUN(cfg_ns, cfg_ns_cmd,
return CMD_SUCCESS;
}
static void dump_nse(struct vty *vty, struct gprs_nsvc *nsvc, bool stats, bool persistent_only)
static void dump_nse(struct vty *vty, const struct gprs_nsvc *nsvc, bool stats, bool persistent_only)
{
if (persistent_only)
if (!nsvc->persistent)
@ -186,7 +186,7 @@ static void dump_nse(struct vty *vty, struct gprs_nsvc *nsvc, bool stats, bool p
}
}
static void dump_ns(struct vty *vty, struct gprs_ns_inst *nsi, bool stats, bool persistent_only)
static void dump_ns(struct vty *vty, const struct gprs_ns_inst *nsi, bool stats, bool persistent_only)
{
struct gprs_nsvc *nsvc;
struct in_addr ia;