summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Schlueter <jschlueter@navigationsolutions.com>2015-02-18 10:43:00 -0500
committerJon Schlueter <jschlueter@navigationsolutions.com>2015-02-23 07:32:06 -0500
commit328efc1f1cfe1392e3c208aeaef048d3c1f7a274 (patch)
tree9ac358987dd3b97dd2c0a6bf13bb3e89c9417527
parentc331152ae884b87071d0922bf118877e6e54ceed (diff)
downloadgpsd-328efc1f1cfe1392e3c208aeaef048d3c1f7a274.tar.gz
Warning hunting cleanup in gpsd.c around ship_pps_drift_message
declaration was missing a stacked guard for CONTROL_SOCKET_ENABLE
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index 4fdebd66..7f4291fb 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1649,7 +1649,7 @@ static int handle_gpsd_request(struct subscriber_t *sub, const char *buf)
}
#endif /* SOCKET_EXPORT_ENABLE */
-#if defined(PPS_ENABLE) && defined(SOCKET_EXPORT_ENABLE)
+#if defined(CONTROL_SOCKET_ENABLE) && defined(PPS_ENABLE) && defined(SOCKET_EXPORT_ENABLE)
static void ship_pps_drift_message(struct gps_device_t *session,
struct timedrift_t *td)
/* on PPS interrupt, ship a drift message to all clients */