diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-03-13 15:10:55 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-03-13 15:16:47 +0100 |
commit | ca69388be813c614ff706b6b6d91b25a14a5a973 (patch) | |
tree | 95e77354515181e37eb0a6de889efc7ddd9142fd /src/gsm | |
parent | 6d2d4d688ef7e32550f4dbe7813c9055c4395aaf (diff) |
gsm_septets2octets(): Input parameter should be const
Diffstat (limited to 'src/gsm')
-rw-r--r-- | src/gsm/gsm_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index ecebde80..5a2f0127 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -202,7 +202,8 @@ int gsm_septet_encode(uint8_t *result, const char *data) } /* 7bit to octet packing */ -int gsm_septets2octets(uint8_t *result, uint8_t *rdata, uint8_t septet_len, uint8_t padding){ +int gsm_septets2octets(uint8_t *result, const uint8_t *rdata, uint8_t septet_len, uint8_t padding) +{ int i = 0, z = 0; uint8_t cb, nb; int shift = 0; |