[PATCH 2/4] Declare constant parameters as constant.

Max Max.Suraev at fairwaves.ru
Thu Aug 29 15:49:02 UTC 2013


---
 src/host/layer23/include/osmocom/bb/common/networks.h | 4 ++--
 src/host/layer23/src/common/networks.c                | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/host/layer23/include/osmocom/bb/common/networks.h b/src/host/layer23/include/osmocom/bb/common/networks.h
index d34f316..9311f6f 100644
--- a/src/host/layer23/include/osmocom/bb/common/networks.h
+++ b/src/host/layer23/include/osmocom/bb/common/networks.h
@@ -17,8 +17,8 @@ const char *gsm_get_mcc(uint16_t mcc);
 const char *gsm_get_mnc(uint16_t mcc, uint16_t mnc);
 const char *gsm_imsi_mcc(char *imsi);
 const char *gsm_imsi_mnc(char *imsi);
-const uint16_t gsm_input_mcc(char *string);
-const uint16_t gsm_input_mnc(char *string);
+const uint16_t gsm_input_mcc(const char *string);
+const uint16_t gsm_input_mnc(const char *string);
 
 #endif /* _NETWORKS_H */
 
diff --git a/src/host/layer23/src/common/networks.c b/src/host/layer23/src/common/networks.c
index ad2caa6..0bb143f 100644
--- a/src/host/layer23/src/common/networks.c
+++ b/src/host/layer23/src/common/networks.c
@@ -1852,7 +1852,7 @@ const char *gsm_print_mnc(uint16_t mnc)
 	return string;
 }
 
-const uint16_t gsm_input_mcc(char *string)
+const uint16_t gsm_input_mcc(const char *string)
 {
 	uint16_t mcc;
 
@@ -1873,7 +1873,7 @@ const uint16_t gsm_input_mcc(char *string)
 	return mcc;
 }
 
-const uint16_t gsm_input_mnc(char *string)
+const uint16_t gsm_input_mnc(const char *string)
 {
 	uint16_t mnc = 0;
 
-- 
1.8.1.2


--------------000206000400030101050401
Content-Type: text/x-patch;
 name="0003-Make-SI-printing-more-flexible.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0003-Make-SI-printing-more-flexible.patch"



More information about the baseband-devel mailing list