diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-29 23:31:38 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-07 02:44:42 +0900 |
commit | b0ba6938df4b096ecd0f956bd501b564b6da7295 (patch) | |
tree | a3ae26394a37c6553c767a5c83c7f140cdb79936 /src/network/networkd-link.c | |
parent | eab052d2b3e73b6b3787d00131ae2d191e7a4ec6 (diff) | |
download | systemd-b0ba6938df4b096ecd0f956bd501b564b6da7295.tar.gz |
network: drop list of static neighbors
[Neighbor] sections are managed by both LIST and Hashmap.
Let's drop list, as they store the completely same information.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 6df7ce74a0..48cf83a753 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -2602,7 +2602,7 @@ static bool link_is_neighbor_configured(Link *link, Neighbor *neighbor) { if (!link->network) return false; - LIST_FOREACH(neighbors, net_neighbor, link->network->neighbors) + HASHMAP_FOREACH(net_neighbor, link->network->neighbors_by_section) if (neighbor_equal(net_neighbor, neighbor)) return true; |