aboutsummaryrefslogtreecommitdiffstats
path: root/gtp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-20 18:24:02 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-28 11:14:57 +0200
commit88ce94c2bdbb6eb9ef4b92d295623514b261b8e3 (patch)
tree987183ef450958d503c106f12fbd443ba61ea1da /gtp
parent310ea1db10fcbe1658ddeb16dc3c4454070d9092 (diff)
pdp: constify param in pdp_count_secondary()
Diffstat (limited to 'gtp')
-rw-r--r--gtp/pdp.c2
-rw-r--r--gtp/pdp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gtp/pdp.c b/gtp/pdp.c
index eaef545..739cf73 100644
--- a/gtp/pdp.c
+++ b/gtp/pdp.c
@@ -359,7 +359,7 @@ void pdp_set_imsi_nsapi(struct pdp_t *pdp, uint64_t teid)
/* Count amount of secondary PDP contexts linked to this primary PDP context
* (itself included). Must be called on a primary PDP context. */
-unsigned int pdp_count_secondary(struct pdp_t *pdp)
+unsigned int pdp_count_secondary(const struct pdp_t *pdp)
{
unsigned int n;
unsigned int count = 0;
diff --git a/gtp/pdp.h b/gtp/pdp.h
index fdfa824..4dcdde4 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -263,7 +263,7 @@ int pdp_tiddel(struct pdp_t *pdp);
uint64_t pdp_gettid(uint64_t imsi, uint8_t nsapi);
void pdp_set_imsi_nsapi(struct pdp_t *pdp, uint64_t teid);
-unsigned int pdp_count_secondary(struct pdp_t *pdp);
+unsigned int pdp_count_secondary(const struct pdp_t *pdp);
/* Deprecated APIs (support for only 1 GSN per process). Must be used only after first call to gtp_new() and until it is freed. */
int pdp_init(struct gsn_t *gsn); /* Use only allowed inside libgtp to keep compatiblity with deprecated APIs defined here. */