diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-18 17:51:26 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-18 17:51:26 +0000 |
commit | 9de0cdc56020027502ebbf47c9b7b906ff59ff35 (patch) | |
tree | 18ed8724c44b74756386ca033fb8c6b1b49e3f41 /test_json.c | |
parent | 63659ed129e343ea748fe016b99beea78f723acb (diff) | |
download | gpsd-9de0cdc56020027502ebbf47c9b7b906ff59ff35.tar.gz |
Daemon now has its own version symbols for the wire protocol...
...and will announce them in the banner.
Diffstat (limited to 'test_json.c')
-rw-r--r-- | test_json.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test_json.c b/test_json.c index c567dd6c..a4523150 100644 --- a/test_json.c +++ b/test_json.c @@ -183,7 +183,7 @@ static const struct json_attr_t json_attrs_6[] = { static const char *json_str7 = "{\"class\":\"VERSION\",\ \"release\":\"2.40dev\",\"rev\":\"dummy-revision\",\ - \"api_major\":3,\"api_minor\":1}"; + \"proto_major\":3,\"proto_minor\":1}"; /* Case 8: test parsing arrays of enumerated types */ @@ -275,8 +275,8 @@ int main(int argc UNUSED, char *argv[] UNUSED) assert_case(7, status); assert_string("release", gpsdata.version.release, "2.40dev"); assert_string("rev", gpsdata.version.rev, "dummy-revision"); - assert_integer("api_major", gpsdata.version.api_major, 3); - assert_integer("api_minor", gpsdata.version.api_minor, 1); + assert_integer("proto_major", gpsdata.version.proto_major, GPSD_PROTO_MAJOR_VERSION); + assert_integer("proto_minor", gpsdata.version.proto_minor, GPSD_PROTO_MINOR_VERSION); status = json_read_object(json_str8, json_attrs_8, NULL); assert_case(8, status); |