summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-07-25 19:12:23 +0700
committerlaforge <laforge@gnumonks.org>2019-07-26 05:23:56 +0000
commit0d8da790df34bd2a844015c236413daf34a6544f (patch)
tree470f94147708dae3ed1f54cc0577de36af27f787
parent6f3bbd4b9f82b5ad3b3a1de0d8fb25e822cc8007 (diff)
gsm/gsm48.h: drop meaningless 'const' from gsm48_mi_to_string()
Change-Id: I5eb17edadf89ac47b4ca86c9e822037f7c0e518e
-rw-r--r--include/osmocom/gsm/gsm48.h3
-rw-r--r--src/gsm/gsm48.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/include/osmocom/gsm/gsm48.h b/include/osmocom/gsm/gsm48.h
index 786fbc9e..7c68b1d2 100644
--- a/include/osmocom/gsm/gsm48.h
+++ b/include/osmocom/gsm/gsm48.h
@@ -53,8 +53,7 @@ int gsm48_generate_mid_from_imsi(uint8_t *buf, const char *imsi);
uint8_t gsm48_generate_mid(uint8_t *buf, const char *id, uint8_t mi_type);
/* Convert Mobile Identity (10.5.1.4) to string */
-int gsm48_mi_to_string(char *string, const int str_len,
- const uint8_t *mi, const int mi_len);
+int gsm48_mi_to_string(char *string, int str_len, const uint8_t *mi, int mi_len);
const char *gsm48_mi_type_name(uint8_t mi);
const char *osmo_mi_name(const uint8_t *mi, uint8_t mi_len);
char *osmo_mi_name_buf(char *buf, size_t buf_len, const uint8_t *mi, uint8_t mi_len);
diff --git a/src/gsm/gsm48.c b/src/gsm/gsm48.c
index c97337b6..2d6deb56 100644
--- a/src/gsm/gsm48.c
+++ b/src/gsm/gsm48.c
@@ -741,8 +741,7 @@ int gsm48_generate_mid_from_imsi(uint8_t *buf, const char *imsi)
* Depending on the MI type and amount of output buffer, this may return
* the nr of written bytes, or the written strlen(), or the snprintf()
* style strlen()-if-the-buffer-were-large-enough. */
-int gsm48_mi_to_string(char *string, const int str_len, const uint8_t *mi,
- const int mi_len)
+int gsm48_mi_to_string(char *string, int str_len, const uint8_t *mi, int mi_len)
{
int rc;
uint8_t mi_type;