diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-04 10:50:24 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-08 13:47:54 +0200 |
commit | 79eba3029f330682d9ba1f5d248720c761de14a7 (patch) | |
tree | cb002f765ebe7adc2821cebcd0c21a2368ce915e /crypto | |
parent | 244b407841412f416723d710476bb29ca1e5698e (diff) | |
download | barebox-79eba3029f330682d9ba1f5d248720c761de14a7.tar.gz barebox-79eba3029f330682d9ba1f5d248720c761de14a7.tar.xz |
crc16: Make buffer argument const
The buffer is not modified by crc16, so make the argument const.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crc16.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crc16.c b/crypto/crc16.c index d22b656379..0b08e9ccde 100644 --- a/crypto/crc16.c +++ b/crypto/crc16.c @@ -90,7 +90,7 @@ static const uint16_t crc16_tab[] = { }; uint16_t -cyg_crc16(unsigned char *buf, int len) +cyg_crc16(const unsigned char *buf, int len) { int i; uint16_t cksum; |