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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Aug 29 05:28:08 UTC 2019


laforge has submitted this change and it was merged. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, approved
  laforge: Looks good to me, approved



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 @@
 
 /* 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 @@
 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: 3
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190829/7af65314/attachment.htm>


More information about the gerrit-log mailing list