diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-14 12:15:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-14 12:15:09 +0200 |
commit | 9ea79b459edef51e3ccc1ddde07c7b1399bed601 (patch) | |
tree | a688c4d5e81f1a7da2f384af3b9681400f2eb6a1 /src/network/networkd-address-pool.c | |
parent | ade37eb98c2fedefd0c1645d0cd083c171dba194 (diff) | |
parent | ce6c77ebf12f80c807ad7589a1fb565fabc6a543 (diff) |
Merge pull request #1530 from teg/network-fixes-2
networkd/libsystemd-network: collection of trivial patches v2
Diffstat (limited to 'src/network/networkd-address-pool.c')
-rw-r--r-- | src/network/networkd-address-pool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-address-pool.c b/src/network/networkd-address-pool.c index d609daafde..b3450c1456 100644 --- a/src/network/networkd-address-pool.c +++ b/src/network/networkd-address-pool.c @@ -21,6 +21,7 @@ #include "networkd.h" #include "networkd-address-pool.h" +#include "set.h" int address_pool_new( Manager *m, @@ -96,9 +97,10 @@ static bool address_pool_prefix_is_taken( HASHMAP_FOREACH(l, p->manager->links, i) { Address *a; + Iterator j; /* Don't clash with assigned addresses */ - LIST_FOREACH(addresses, a, l->addresses) { + SET_FOREACH(a, l->addresses, j) { if (a->family != p->family) continue; |