diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-23 15:45:54 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-23 15:45:54 +0000 |
commit | 2d130236d0dd5b52f652e257210d9f8ab9bb5933 (patch) | |
tree | 8018d4f9216dd6922c6d55ae17fb3fd7dd7ec718 /gpsd.c | |
parent | c437f0c939ba9611fa01b1ba341a3fe03c6542fd (diff) | |
download | gpsd-2d130236d0dd5b52f652e257210d9f8ab9bb5933.tar.gz |
Parse WATCH responses in the client library. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |