diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 20:38:37 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-06 20:38:37 -0500 |
commit | 56e719970de0fcbbc6c086159f31f82b5eb35128 (patch) | |
tree | eec477c566d221cb1823935155231f38036e778c /crc24q.c | |
parent | f1e30c3197910f319cf2d624666be87a0580b82a (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |