diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-07-27 18:06:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-07-27 18:06:11 +0000 |
commit | da38a6caf4bd1b21d792334e7afa5b138799d176 (patch) | |
tree | 579a1ed4df8f1d015d0c338fb0552b309976ede8 /gpsd.c | |
parent | 12e1524d54406d4a02c860c24e5521baf2181ee1 (diff) | |
download | gpsd-da38a6caf4bd1b21d792334e7afa5b138799d176.tar.gz |
First cut at RTCM undumper, and some splint cleanup.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ } |