Change in ...osmo-ggsn[master]: pdp: constify param in pdp_count_secondary()

pespin gerrit-no-reply at lists.osmocom.org
Tue Aug 20 17:11:57 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/15255


Change subject: pdp: constify param in pdp_count_secondary()
......................................................................

pdp: constify param in pdp_count_secondary()

Change-Id: Ie772f2c54264c8bc91f50d9030479861dd8868b7
---
M gtp/pdp.c
M gtp/pdp.h
2 files changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/55/15255/1

diff --git a/gtp/pdp.c b/gtp/pdp.c
index d745916..6ecf48c 100644
--- a/gtp/pdp.c
+++ b/gtp/pdp.c
@@ -348,7 +348,7 @@
 
 /* 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 d64d394..b95dc7f 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -260,7 +260,7 @@
 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. */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/15255
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: Ie772f2c54264c8bc91f50d9030479861dd8868b7
Gerrit-Change-Number: 15255
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190820/b84b8425/attachment.html>


More information about the gerrit-log mailing list