diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-17 06:46:25 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-19 17:56:40 +0900 |
commit | 6dd18b34cf53ab663140f43f8814904c71cc29f7 (patch) | |
tree | 87dbca22dc6eb2aaa9c8c6a5a3202e81d525bfd2 /src/shared/json.c | |
parent | 5e3b8aeef30f8b46669280ecffc178fa43c8bf00 (diff) | |
download | systemd-6dd18b34cf53ab663140f43f8814904c71cc29f7.tar.gz |
json: use unsigned for refernce counter
For other places, we use unsigned for reference counter.
Diffstat (limited to 'src/shared/json.c')
-rw-r--r-- | src/shared/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/json.c b/src/shared/json.c index dff95eda26..f66b7df24c 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -41,7 +41,7 @@ assert_cc(DEPTH_MAX <= UINT16_MAX); typedef struct JsonSource { /* When we parse from a file or similar, encodes the filename, to indicate the source of a json variant */ - size_t n_ref; + unsigned n_ref; unsigned max_line; unsigned max_column; char name[]; @@ -53,7 +53,7 @@ struct JsonVariant { /* We either maintain a reference counter for this variant itself, or we are embedded into an * array/object, in which case only that surrounding object is ref-counted. (If 'embedded' is false, * see below.) */ - size_t n_ref; + unsigned n_ref; /* If this JsonVariant is part of an array/object, then this field points to the surrounding * JSON_VARIANT_ARRAY/JSON_VARIANT_OBJECT object. (If 'embedded' is true, see below.) */ |