aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crc.c
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-13 10:29:39 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-13 10:29:39 +0200
commita5c50a4f262f0a880734623f79d4dc2f1aa8a0a2 (patch)
tree1772ef47d98a68245c3d04d95637e5b9c1040904 /lib/crc.c
parent69aba72f0883c5effb5c3c2991d0c5257deb7409 (diff)
downloaddabmod-a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2.tar.gz
dabmod-a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2.tar.bz2
dabmod-a5c50a4f262f0a880734623f79d4dc2f1aa8a0a2.zip
Pull in files from odr-mmbtools-common
Replace ASIO by simpler implementation, meaning that the telnet RC now only supports a single connection. Move Log, RC to lib/
Diffstat (limited to 'lib/crc.c')
-rw-r--r--lib/crc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/crc.c b/lib/crc.c
index 0c70263..cc02473 100644
--- a/lib/crc.c
+++ b/lib/crc.c
@@ -248,7 +248,6 @@ uint16_t crc16(uint16_t l_crc, const void *lp_data, unsigned l_nb)
{
const uint8_t* data = (const uint8_t*)lp_data;
while (l_nb--) {
- //fprintf(stdout, "crc 0x%02x 0x%04x\n", *data, l_crc);
l_crc =
(l_crc << 8) ^ crc16tab[(l_crc >> 8) ^ *(data++)];
}