summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-04-01 02:41:02 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-04-01 02:41:02 -0400
commit90e1d453f282f014a959260764431e64a791942d (patch)
treedd3137c312202089a8ee5df5a37a78e848397bfd /libgpsd_core.c
parentca3731143371a2b064f42b97c370ef54bfacb654 (diff)
downloadgpsd-90e1d453f282f014a959260764431e64a791942d.tar.gz
Thread monitor interface simplification.
With a bit of refactoring we can eliminate one of the hooks. PPS observed live, telnetting to localhost:2947 with gpsd running.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r--libgpsd_core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c
index ce023f63..306bca13 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -422,7 +422,6 @@ void gpsd_clear(struct gps_device_t *session)
memset((void *)&session->pps_thread, 0, sizeof(session->pps_thread));
session->pps_thread.devicefd = session->gpsdata.gps_fd;
session->pps_thread.devicename = session->gpsdata.dev.path;
- session->pps_thread.pps_hook = NULL;
session->pps_thread.log_hook = ppsthread_log;
session->pps_thread.context = (void *)session;
#endif /* PPS_ENABLE */