summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-07-27 18:06:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-07-27 18:06:11 +0000
commitda38a6caf4bd1b21d792334e7afa5b138799d176 (patch)
tree579a1ed4df8f1d015d0c338fb0552b309976ede8 /gpsd.c
parent12e1524d54406d4a02c860c24e5521baf2181ee1 (diff)
downloadgpsd-da38a6caf4bd1b21d792334e7afa5b138799d176.tar.gz
First cut at RTCM undumper, and some splint cleanup.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index 14c4e867..d94edda8 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1364,8 +1364,8 @@ int main(int argc, char *argv[])
if ((changed & RTCM_SET) == 0) {
FD_CLR(channel->gpsdata.gps_fd, &all_fds);
for (gps = channels; gps < channels + MAXDEVICES; gps++)
- if (gps->device_type && gps->device_type->rtcm_writer)
- gps->device_type->rtcm_writer(gps, (char *)gps->outbuffer, gps->outbuflen);
+ if (gps->device_type!=NULL && gps->device_type->rtcm_writer != NULL)
+ (void)gps->device_type->rtcm_writer(gps, (char *)gps->outbuffer, gps->outbuflen);
}
#endif /* RTCM104_ENABLE */
}