Skip to content

Commit bdf4f20

Browse files
committed
network: update comment as hashmap_free_with_destructor() does not exist anymore
1 parent 4cbc25a commit bdf4f20

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/network/netdev/netdev.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,8 +1163,7 @@ int netdev_reload(Manager *manager) {
11631163
}
11641164

11651165
/* Detach old NetDev objects from Manager.
1166-
* Note, the same object may be registered with multiple names, and netdev_detach() may drop multiple
1167-
* entries. Hence, hashmap_free_with_destructor() cannot be used. */
1166+
* The same object may be registered with multiple names, and netdev_detach() may drop multiple entries. */
11681167
for (NetDev *n; (n = hashmap_first(manager->netdevs)); )
11691168
netdev_detach(n);
11701169

src/network/networkd-manager.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,7 @@ Manager* manager_free(Manager *m) {
683683
m->dhcp_pd_subnet_ids = set_free(m->dhcp_pd_subnet_ids);
684684
m->networks = ordered_hashmap_free(m->networks);
685685

686-
/* The same object may be registered with multiple names, and netdev_detach() may drop multiple
687-
* entries. Hence, hashmap_free_with_destructor() cannot be used. */
686+
/* The same object may be registered with multiple names, and netdev_detach() may drop multiple entries. */
688687
for (NetDev *n; (n = hashmap_first(m->netdevs)); )
689688
netdev_detach(n);
690689
m->netdevs = hashmap_free(m->netdevs);

0 commit comments

Comments
 (0)