summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-12 15:49:03 +0700
committerfixeria <axilirator@gmail.com>2019-06-12 11:29:06 +0000
commitd9fc6041e7cba69fe42419bafaeaaa7cfeb6d8c2 (patch)
tree5a97fb684fcbf68977a1a4bb71fc88418777f300
parent6df2e44404bd710b13539a09450117f755498c65 (diff)
core/utils: drop meaningless const from return value of osmo_luhn()
Change-Id: I085da06f31a0a6862ae2ba041fafc134cc240f7e
-rw-r--r--include/osmocom/core/utils.h2
-rw-r--r--src/utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/core/utils.h b/include/osmocom/core/utils.h
index f27359cb..f429ba6c 100644
--- a/include/osmocom/core/utils.h
+++ b/include/osmocom/core/utils.h
@@ -155,7 +155,7 @@ int osmo_print_n(char *buf, size_t bufsize, const char *str, size_t n);
uint32_t osmo_isqrt32(uint32_t x);
-const char osmo_luhn(const char* in, int in_len);
+char osmo_luhn(const char* in, int in_len);
/*! State for OSMO_STRBUF_APPEND() and OSMO_STRBUF_PRINTF(). See there for examples. */
struct osmo_strbuf {
diff --git a/src/utils.c b/src/utils.c
index c38f5305..7b7178ca 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -993,7 +993,7 @@ char *osmo_str_toupper_c(const void *ctx, const char *src)
* \param[in] in_len Count of digits to use for the input (14 for IMEI).
* \returns checksum char (e.g. '3'); negative on error
*/
-const char osmo_luhn(const char* in, int in_len)
+char osmo_luhn(const char* in, int in_len)
{
int i, sum = 0;