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>
This commit is contained in:
parent
244b407841
commit
79eba3029f
|
@ -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;
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in New Issue