[PATCH] openggsn[master]: ippool_new(): const-ify input arguments

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Aug 2 23:37:11 UTC 2017


Review at  https://gerrit.osmocom.org/3405

ippool_new(): const-ify input arguments

Change-Id: If3e53584e8c9c1f06bba4c183c9fd65fae913904
---
M lib/ippool.c
M lib/ippool.h
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openggsn refs/changes/05/3405/1

diff --git a/lib/ippool.c b/lib/ippool.c
index 6c43ad7..9a3d0b3 100644
--- a/lib/ippool.c
+++ b/lib/ippool.c
@@ -187,7 +187,7 @@
 }
 
 /* Create new address pool */
-int ippool_new(struct ippool_t **this, char *dyn, char *stat,
+int ippool_new(struct ippool_t **this, const char *dyn, const char *stat,
 	       int allowdyn, int allowstat, int flags)
 {
 
diff --git a/lib/ippool.h b/lib/ippool.h
index 53154f2..e3c1c92 100644
--- a/lib/ippool.h
+++ b/lib/ippool.h
@@ -69,7 +69,7 @@
 extern unsigned long int ippool_hash(struct in46_addr *addr);
 
 /* Create new address pool */
-extern int ippool_new(struct ippool_t **this, char *dyn, char *stat,
+extern int ippool_new(struct ippool_t **this, const char *dyn, const char *stat,
 		      int allowdyn, int allowstat, int flags);
 
 /* Delete existing address pool */

-- 
To view, visit https://gerrit.osmocom.org/3405
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3e53584e8c9c1f06bba4c183c9fd65fae913904
Gerrit-PatchSet: 1
Gerrit-Project: openggsn
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>



More information about the gerrit-log mailing list