summaryrefslogtreecommitdiff
path: root/tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-01-01 14:53:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-01-01 14:53:16 +0000
commitc91a8ae8dc4f3a3221c5c11540beafcc17e62790 (patch)
treee6d9fa69160c2ddacfd6508c513b4b0504ed5ec3 /tsip.c
parent71b0abd00ad1b3a1b56d6ce0a650ebc0dddbd1b5 (diff)
downloadgpsd-c91a8ae8dc4f3a3221c5c11540beafcc17e62790.tar.gz
Minor splint cleanups. All regressio tests pass.
Diffstat (limited to 'tsip.c')
-rw-r--r--tsip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tsip.c b/tsip.c
index cd02c5e7..2a2f9288 100644
--- a/tsip.c
+++ b/tsip.c
@@ -199,7 +199,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session)
f2 = getf(buf,6); /* leap seconds */
if (f1 >= 0.0 && f2 > 10.0) {
session->driver.tsip.gps_week = s1;
- session->context->leap_seconds = (int)roundf(f2);
+ session->context->leap_seconds = (int)round(f2);
session->context->valid |= LEAP_SECOND_VALID;
session->gpsdata.sentence_time = gpstime_to_unix((int)s1, f1) - f2;
@@ -272,7 +272,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session)
f1 = 0.0;
for (j = 0; j < TSIP_CHANNELS; j++)
if (session->gpsdata.PRN[j] == (int)u1) {
- session->gpsdata.ss[j] = (int)roundf(f1);
+ session->gpsdata.ss[j] = (int)round(f1);
break;
}
(void)snprintf(buf2+strlen(buf2), sizeof(buf2)-strlen(buf2),
@@ -408,7 +408,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session)
if (i < TSIP_CHANNELS) {
if (d1 >= 0.0) {
session->gpsdata.PRN[i] = (int)u1;
- session->gpsdata.ss[i] = (int)roundf(f1);
+ session->gpsdata.ss[i] = (int)round(f1);
session->gpsdata.elevation[i] = (int)round(d1);
session->gpsdata.azimuth[i] = (int)round(d2);
} else {