summaryrefslogtreecommitdiff
path: root/crc24q.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-06 20:38:37 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 20:38:37 -0500
commit56e719970de0fcbbc6c086159f31f82b5eb35128 (patch)
treeeec477c566d221cb1823935155231f38036e778c /crc24q.c
parentf1e30c3197910f319cf2d624666be87a0580b82a (diff)
downloadgpsd-56e719970de0fcbbc6c086159f31f82b5eb35128.tar.gz
Code is fully cppcheck, splint, and Coverity clean.
All regression tests pass. PPS is live.
Diffstat (limited to 'crc24q.c')
-rw-r--r--crc24q.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crc24q.c b/crc24q.c
index 9d1cb050..34b2dd46 100644
--- a/crc24q.c
+++ b/crc24q.c
@@ -159,6 +159,7 @@ unsigned crc24q_hash(unsigned char *data, int len)
#define MID(x) (unsigned char)(((x) >> 8) & 0xff)
#define HI(x) (unsigned char)(((x) >> 16) & 0xff)
+#ifdef __UNUSED__
void crc24q_sign(unsigned char *data, int len)
{
unsigned crc = crc24q_hash(data, len);
@@ -167,6 +168,7 @@ void crc24q_sign(unsigned char *data, int len)
data[len + 1] = MID(crc);
data[len + 2] = LO(crc);
}
+#endif /* __UNUSED__ */
bool crc24q_check(unsigned char *data, int len)
{