diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-14 15:08:44 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-11-25 22:35:35 +0900 |
commit | 385f2512d52e02612ccde7aafbb0c6757cdca7c4 (patch) | |
tree | 07ce2dfba2235bf16e6661764034329c8d528928 | |
parent | 165e71994809cb0cd61bd05e30021b46945795c8 (diff) | |
download | systemd-385f2512d52e02612ccde7aafbb0c6757cdca7c4.tar.gz |
network: json: split manager_build_json() into two
-rw-r--r-- | src/network/networkd-json.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/networkd-json.c b/src/network/networkd-json.c index e8e6daf092..c5486dd0b5 100644 --- a/src/network/networkd-json.c +++ b/src/network/networkd-json.c @@ -107,7 +107,7 @@ static int link_json_compare(JsonVariant * const *a, JsonVariant * const *b) { return CMP(index_a, index_b); } -int manager_build_json(Manager *manager, JsonVariant **ret) { +static int links_build_json(Manager *manager, JsonVariant **ret) { JsonVariant **elements; Link *link; size_t n = 0; @@ -136,3 +136,7 @@ finalize: free(elements); return r; } + +int manager_build_json(Manager *manager, JsonVariant **ret) { + return links_build_json(manager, ret); +} |