summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-14 15:08:44 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-25 22:35:35 +0900
commit385f2512d52e02612ccde7aafbb0c6757cdca7c4 (patch)
tree07ce2dfba2235bf16e6661764034329c8d528928
parent165e71994809cb0cd61bd05e30021b46945795c8 (diff)
downloadsystemd-385f2512d52e02612ccde7aafbb0c6757cdca7c4.tar.gz
network: json: split manager_build_json() into two
-rw-r--r--src/network/networkd-json.c6
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);
+}