From 29b318ad225a55fe6887af98e89c7ec7a882f04a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 27 Feb 2011 16:21:30 -0500 Subject: 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. --- driver_sirf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_sirf.c') 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 */ -- cgit v1.2.1