summaryrefslogtreecommitdiff
path: root/driver_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-27 16:21:30 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-27 16:21:30 -0500
commit29b318ad225a55fe6887af98e89c7ec7a882f04a (patch)
tree203b3c3f4e0aace6a63fe2ad44f510ec9fc40ba2 /driver_sirf.c
parent56aa6b145fcd49d3782b3da4860276a3f71b7bbd (diff)
downloadgpsd-29b318ad225a55fe6887af98e89c7ec7a882f04a.tar.gz
Remove pass_rtcm(),
Replace it wuth what it calls, gpsd_write(). Requiresd only a prototype tweak and some casts, no logic changes. All regression tests pass.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r--driver_sirf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index 43b30a8b..31a315da 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -160,7 +160,7 @@ static bool sirf_write(struct gps_device_t *session, unsigned char *msg)
msg[len + 5] = (unsigned char)(crc & 0x00ff);
gpsd_report(LOG_IO, "SiRF: Writing control type %02x:\n", msg[4]);
- ok = (gpsd_write(session, msg, len + 8) == (ssize_t) (len + 8));
+ ok = (gpsd_write(session, (const char *)msg, len+8) == (ssize_t) (len+8));
return (ok);
}
@@ -1337,7 +1337,7 @@ const struct gps_type_t sirf_binary =
.probe_detect = NULL, /* no probe */
.get_packet = sirf_get, /* be prepared for SiRF or NMEA */
.parse_packet = sirfbin_parse_input,/* parse message packets */
- .rtcm_writer = pass_rtcm, /* send RTCM data straight */
+ .rtcm_writer = gpsd_write, /* send RTCM data straight */
.event_hook = sirfbin_event_hook,/* lifetime event handler */
#ifdef ALLOW_RECONFIGURE
.speed_switcher = sirfbin_speed, /* we can change baud rate */