From ddcd2afc828bf20ea76f38386fb43e4b795e9733 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 7 May 2011 12:43:12 +0200 Subject: crc: use namespace prefix osmo_* Summary of changes: s/crc16_table/osmo_crc16_table/g s/crc16/osmo_crc16/g s/crc16_byte/osmo_crc16_byte/g --- include/osmocom/core/crc16.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/osmocom/core/crc16.h') diff --git a/include/osmocom/core/crc16.h b/include/osmocom/core/crc16.h index 7a512490..0e524176 100644 --- a/include/osmocom/core/crc16.h +++ b/include/osmocom/core/crc16.h @@ -22,13 +22,13 @@ #include -extern uint16_t const crc16_table[256]; +extern uint16_t const osmo_crc16_table[256]; -extern uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len); +extern uint16_t osmo_crc16(uint16_t crc, const uint8_t *buffer, size_t len); -static inline uint16_t crc16_byte(uint16_t crc, const uint8_t data) +static inline uint16_t osmo_crc16_byte(uint16_t crc, const uint8_t data) { - return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff]; + return (crc >> 8) ^ osmo_crc16_table[(crc ^ data) & 0xff]; } #endif /* __CRC16_H */ -- cgit v1.2.3