summaryrefslogtreecommitdiff
path: root/bits.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-17 10:04:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-17 10:04:37 -0400
commit978b7afe869dee677cc37538db1eec0d2fe94fe0 (patch)
treee6a1f59efc2af4a4d1559764fcd28d8087f81109 /bits.c
parenta34118b0a18820dc7d034dd04a0108c77ec12326 (diff)
downloadgpsd-978b7afe869dee677cc37538db1eec0d2fe94fe0.tar.gz
splint/cppcheck cleanup.
Diffstat (limited to 'bits.c')
-rw-r--r--bits.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bits.c b/bits.c
index 2d52d962..1914f4f7 100644
--- a/bits.c
+++ b/bits.c
@@ -115,15 +115,15 @@ double getbed64(const char *buf, int off)
return l_d.d;
}
-/*@-shiftimplementation@*/
void putbef32(char *buf, int off, float val)
{
union int_float i_f;
i_f.f = val;
+ /*@-shiftimplementation +ignoresigns@*/
putbe32(buf, off, i_f.i);
+ /*@+shiftimplementation -ignoresigns@*/
}
-/*@+shiftimplementation@*/
#ifdef __UNUSED__
// cppcheck-suppress unusedFunction