summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-23 15:45:54 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-23 15:45:54 +0000
commit2d130236d0dd5b52f652e257210d9f8ab9bb5933 (patch)
tree8018d4f9216dd6922c6d55ae17fb3fd7dd7ec718 /gpsd.c
parentc437f0c939ba9611fa01b1ba341a3fe03c6542fd (diff)
downloadgpsd-2d130236d0dd5b52f652e257210d9f8ab9bb5933.tar.gz
Parse WATCH responses in the client library. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsd.c b/gpsd.c
index ac739b4f..2ebab296 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1617,7 +1617,7 @@ static void handle_newstyle_request(struct subscriber_t *sub,
} else {
int status;
struct policy_t policy;
- status = json_watch_read(&policy, buf+1, &end);
+ status = json_watch_read(buf+1, &policy, &end);
if (status == 0) {
if (*end == ';')
++end;
@@ -1663,7 +1663,7 @@ static void handle_newstyle_request(struct subscriber_t *sub,
devconf.path[0] = '\0';
if (*buf == '=') {
int status;
- status = json_configdev_read(&devconf, buf+1, &end);
+ status = json_configdev_read(buf+1, &devconf, &end);
if (*end == ';')
++end;
if (status != 0)