summaryrefslogtreecommitdiff
path: root/srecord.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 /srecord.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 'srecord.c')
-rw-r--r--srecord.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/srecord.c b/srecord.c
index b76ba9ac..afbbefa5 100644
--- a/srecord.c
+++ b/srecord.c
@@ -54,11 +54,13 @@ bin2srec(unsigned int type, unsigned int offset, unsigned int num,
return 0;
}
+// cppcheck-suppress unusedFunction
int srec_hdr(unsigned int num, unsigned char *bbuf, unsigned char *sbuf)
{
return bin2srec(0, 0, num, bbuf, sbuf);
}
+// cppcheck-suppress unusedFunction
int srec_fin(unsigned int num, unsigned char *sbuf)
{
unsigned char bbuf[4], sum;