diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-10 20:42:07 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-10 20:42:07 +0000 |
commit | c193e130eb3326a575cbfb6693092ab5bfddec7f (patch) | |
tree | 4912f67092d89edb96818e2ad9b693938800181d /zodiac.c | |
parent | f0e3f410c20627c20be3ee5727902a0dfaded725 (diff) | |
download | gpsd-c193e130eb3326a575cbfb6693092ab5bfddec7f.tar.gz |
OpenBSD port change: round[f] -> rint[f].
Diffstat (limited to 'zodiac.c')
-rw-r--r-- | zodiac.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |