summaryrefslogtreecommitdiff
path: root/zodiac.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-11 12:46:48 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-11 12:46:48 +0000
commitcc576322c3fe31952e2cac3460948e0ea8bbb64a (patch)
tree3e204de60ac2debd1a4a279c762b6712aff8d4cc /zodiac.c
parent1d02de96e05e286904f3241043be647d13722ab7 (diff)
downloadgpsd-cc576322c3fe31952e2cac3460948e0ea8bbb64a.tar.gz
Port hack for OpebBSD; base code on C99 round()/roundf().
Diffstat (limited to 'zodiac.c')
-rw-r--r--zodiac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zodiac.c b/zodiac.c
index 86b3c733..7b6131b4 100644
--- a/zodiac.c
+++ b/zodiac.c
@@ -93,7 +93,7 @@ static bool zodiac_speed_switch(struct gps_device_t *session, speed_t speed)
data[2] = 1; /* port 1 character width (8 bits) */
data[3] = 0; /* port 1 stop bits (1 stopbit) */
data[4] = 0; /* port 1 parity (none) */
- data[5] = (unsigned short)(rint(log((double)speed/300)/M_LN2)+1); /* port 1 speed */
+ data[5] = (unsigned short)(round(log((double)speed/300)/M_LN2)+1); /* port 1 speed */
data[14] = zodiac_checksum(data, 14);
zodiac_spew(session, 1330, data, 15);