diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-04 07:00:51 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-04 09:08:55 +0200 |
commit | 38b9af615401f284974e3f5d1750006044190172 (patch) | |
tree | 657079bd6c515c3d47b17de975275f949369a749 /src/network/networkctl.c | |
parent | cpu-set-util: use %d-%d format in cpu_set_to_range_string() only for actual ... (diff) | |
download | systemd-38b9af615401f284974e3f5d1750006044190172.tar.xz systemd-38b9af615401f284974e3f5d1750006044190172.zip |
networkctl: re-cast value stored in Set with INT_TO_PTR()
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 9c23672ffd..a074dae758 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -1533,6 +1533,7 @@ static int link_delete(int argc, char *argv[], void *userdata) { _cleanup_set_free_ Set *indexes = NULL; int index, r, i; Iterator j; + void *p; r = sd_netlink_open(&rtnl); if (r < 0) @@ -1552,8 +1553,8 @@ static int link_delete(int argc, char *argv[], void *userdata) { return log_oom(); } - SET_FOREACH(index, indexes, j) { - r = link_delete_send_message(rtnl, index); + SET_FOREACH(p, indexes, j) { + r = link_delete_send_message(rtnl, PTR_TO_INT(p)); if (r < 0) { char ifname[IF_NAMESIZE + 1]; |