summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-03 09:51:50 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-03 13:00:21 -0500
commit5cc6d2e3cda9c51f8103716c5eae226d51552045 (patch)
tree2801704116edb86645949bd6a52d0d34912e8473 /libgpsd_core.c
parent2253624900ad400a27d05dfae0fff47c42afbd38 (diff)
downloadgpsd-5cc6d2e3cda9c51f8103716c5eae226d51552045.tar.gz
Build fix for when pps=no.
All regression tests pass.
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 36ae173f..dcf268fa 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -330,10 +330,10 @@ void gpsd_init(struct gps_device_t *session, struct gps_context_t *context,
#ifdef PPS_ENABLE
memset( (void *)&session->ppslast, 0, sizeof(session->ppslast));
session->ppscount = 0;
-#endif /* PPS_ENABLE */
#if defined(HAVE_SYS_TIMEPPS_H)
session->kernelpps_handle = -1;
#endif /* defined(HAVE_SYS_TIMEPPS_H) */
+#endif /* PPS_ENABLE */
/*@ -mayaliasunique @*/
if (device != NULL)