summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-05-07 12:43:12 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-05-07 13:00:51 +0200
commitddcd2afc828bf20ea76f38386fb43e4b795e9733 (patch)
tree94bd0b53683293365865550dc284796250f3d1d8 /include/osmocom/core
parent87f7b25e563ed3a3a33bb8c5d5a4543c3d5ca706 (diff)
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
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/crc16.h8
1 files changed, 4 insertions, 4 deletions
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 <sys/types.h>
-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 */