summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-network.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-10-27 08:29:24 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-10-30 16:58:42 +0100
commit173c9f639b1b80155b5843dd721f27377cb5424e (patch)
tree921240d602f578b06167a3a7020ebe68ace31117 /src/network/networkd-network.h
parentnetwork/netdev: update state file when NetDev object assignment is changed (diff)
downloadsystemd-173c9f639b1b80155b5843dd721f27377cb5424e.tar.xz
systemd-173c9f639b1b80155b5843dd721f27377cb5424e.zip
network: drop no-op cleanup
- network_load() is always called with an empty OrderedHashmap, renamed the output parameter to 'ret'. - When netdev_load() is called on startup, the hashmap is NULL. When it is called on reloading, the hashmap is not cleaned up. Hence, then these cleanups are always no-op. Let's drop them.
Diffstat (limited to '')
-rw-r--r--src/network/networkd-network.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
index b4ab117928..30ea9ac352 100644
--- a/src/network/networkd-network.h
+++ b/src/network/networkd-network.h
@@ -419,7 +419,7 @@ Network *network_ref(Network *network);
Network *network_unref(Network *network);
DEFINE_TRIVIAL_CLEANUP_FUNC(Network*, network_unref);
-int network_load(Manager *manager, OrderedHashmap **networks);
+int network_load(Manager *manager, OrderedHashmap **ret);
int network_reload(Manager *manager);
int network_load_one(Manager *manager, OrderedHashmap **networks, const char *filename);
int network_verify(Network *network);