diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-07-13 10:03:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-07-13 10:03:21 +0000 |
commit | 72405d13d75ae43f843bf8374bafba8c15483a61 (patch) | |
tree | 5a592f0ced426e4c87a0b6d818c832ee15801421 /json.c | |
parent | cd8291f812b68d3f89055fdf3c3cf71fd5219305 (diff) | |
download | gpsd-72405d13d75ae43f843bf8374bafba8c15483a61.tar.gz |
Set up initializers for JSON satellite data parsing.
Diffstat (limited to 'json.c')
-rw-r--r-- | json.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -89,7 +89,7 @@ int json_read_object(const char *cp, const struct json_attr_t *attrs, int offset --cp; if (cursor->type != array) return JSON_ERR_NOARRAY; /* saw [ when not expecting array */ - substatus = json_read_array(cp, cursor->addr.array, &cp); + substatus = json_read_array(cp, &cursor->addr.array, &cp); if (substatus < 0) return substatus; } else if (cursor->type == array) @@ -164,7 +164,7 @@ int json_read_object(const char *cp, const struct json_attr_t *attrs, int offset return 0; } -int json_read_array(const char *cp, const struct json_array_t *attrs, const char **end) +int json_read_array(const char *cp, const struct json_array_t *array, const char **end) { int substatus; |