summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-17 06:39:20 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-17 06:39:20 -0400
commit66061a5018bc8a005453226c26ea806a343fe973 (patch)
tree64b9df46b75dadcde93bd7d681cfb5ccb263caf0 /gpsd.c
parentea9a3bae9cee3b668e2bd8a6f50238aeacebf230 (diff)
downloadgpsd-66061a5018bc8a005453226c26ea806a343fe973.tar.gz
Attribute typo fix, and bring the manual in sync.
No, we're not going to ship with "time" everywhere except one place in the POLL response; that's a bug. It will either be "time" or "timestamp" everywhere.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd.c b/gpsd.c
index a5826133..9792835b 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1124,7 +1124,7 @@ static void handle_request(struct subscriber_t *sub,
if ((devp->observed & GPS_TYPEMASK) != 0)
active++;
(void)snprintf(reply, replylen,
- "{\"class\":\"POLL\",\"timestamp\":\"%s\",\"active\":%d,\"fixes\":[",
+ "{\"class\":\"POLL\",\"time\":\"%s\",\"active\":%d,\"fixes\":[",
unix_to_iso8601(timestamp(), tbuf, sizeof(tbuf)), active);
for (devp = devices; devp < devices + MAXDEVICES; devp++) {
if (allocated_device(devp) && subscribed(sub, devp)) {