summaryrefslogtreecommitdiff
path: root/zodiac.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-10 20:42:07 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-10 20:42:07 +0000
commitc193e130eb3326a575cbfb6693092ab5bfddec7f (patch)
tree4912f67092d89edb96818e2ad9b693938800181d /zodiac.c
parentf0e3f410c20627c20be3ee5727902a0dfaded725 (diff)
downloadgpsd-c193e130eb3326a575cbfb6693092ab5bfddec7f.tar.gz
OpenBSD port change: round[f] -> rint[f].
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 0e77f18e..21ed1c58 100644
--- a/zodiac.c
+++ b/zodiac.c
@@ -92,7 +92,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)(round(log((double)speed/300)/M_LN2)+1); /* port 1 speed */
+ data[5] = (unsigned short)(rint(log((double)speed/300)/M_LN2)+1); /* port 1 speed */
data[14] = zodiac_checksum(data, 14);
zodiac_spew(session, 1330, data, 15);