summaryrefslogtreecommitdiffstats
path: root/include/crc.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-04 10:50:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-08 13:47:54 +0200
commit79eba3029f330682d9ba1f5d248720c761de14a7 (patch)
treecb002f765ebe7adc2821cebcd0c21a2368ce915e /include/crc.h
parent244b407841412f416723d710476bb29ca1e5698e (diff)
downloadbarebox-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 'include/crc.h')
-rw-r--r--include/crc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crc.h b/include/crc.h
index 10560c9fa9..4290f41c57 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -95,6 +95,6 @@ cyg_ether_crc32_accumulate(uint32_t crc, unsigned char *s, int len);
/* 16 bit CRC with polynomial x^16+x^12+x^5+1 */
-extern uint16_t cyg_crc16(unsigned char *s, int len);
+extern uint16_t cyg_crc16(const unsigned char *s, int len);
#endif /* _SERVICES_CRC_CRC_H_ */