summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-23 04:00:49 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-23 04:00:49 -0400
commita211e0f8e86649fa63dead9f8290805245198257 (patch)
tree1c4189c25df719b99d9baa6e7a1a2d97afa9e715 /gpsd.c
parente13757fe9211baae0dcd5171d37a5c79fa14441f (diff)
downloadgpsd-a211e0f8e86649fa63dead9f8290805245198257.tar.gz
If the profiling code isn't compiled in, timing policy bit must be forced off.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 0ea6cf33..fdcf622e 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1034,6 +1034,9 @@ static void handle_request(struct subscriber_t *sub,
++buf;
} else {
int status = json_watch_read(buf + 1, &sub->policy, &end);
+#ifndef TIMING_ENABLE
+ sub->policy.timing = false;
+#endif /* TIMING_ENABLE */
if (end == NULL)
buf += strlen(buf);
else {