diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-05-21 23:30:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-05-21 23:30:37 +0200 |
commit | dde8bb32b12c855509777ce52ff59a835155ac78 (patch) | |
tree | 7d964ece0fb7a14155eeb36874c3fc3da71d0632 /src/test/test-json.c | |
parent | 85dbc30747023db0fdb95dfe48fad6102c726fc2 (diff) |
json: minor style fixessystemd/v220
Diffstat (limited to 'src/test/test-json.c')
-rw-r--r-- | src/test/test-json.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-json.c b/src/test/test-json.c index 1e3a72729f..1058c583c3 100644 --- a/src/test/test-json.c +++ b/src/test/test-json.c @@ -75,9 +75,10 @@ static void test_one(const char *data, ...) { typedef void (*Test)(JsonVariant *); static void test_file(const char *data, Test test) { - _cleanup_jsonunref_ JsonVariant *v = NULL; - int r = json_parse(data, &v); + _cleanup_json_variant_unref_ JsonVariant *v = NULL; + int r; + r = json_parse(data, &v); assert_se(r == 0); assert_se(v != NULL); assert_se(v->type == JSON_VARIANT_OBJECT); |