summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-10 16:51:56 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-10 16:51:56 +0000
commit8b96601846782e2c93c1db2101131d6d26739e10 (patch)
tree7f5fdcf488a7611d1eb2491e43add2cfae4336a8 /libgpsd_core.c
parentd2f658160518ea0961ff2a9c42311ef3d98323c9 (diff)
downloadgpsd-8b96601846782e2c93c1db2101131d6d26739e10.tar.gz
Compiler-warning and splint cleanup.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 5a6775b3..f422c17a 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -561,7 +561,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
if (session->device_type) {
newlen = session->device_type->get_packet(session);
session->gpsdata.d_xmit_time = timestamp();
- if (session->device_type->probe_subtype != 0)
+ if (session->device_type->probe_subtype != NULL)
session->device_type->probe_subtype(session, ++session->packet_counter);
} else {
newlen = packet_get(session);