summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-04 07:00:51 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-06-04 09:08:55 +0200
commit38b9af615401f284974e3f5d1750006044190172 (patch)
tree657079bd6c515c3d47b17de975275f949369a749 /src/network/networkctl.c
parentcpu-set-util: use %d-%d format in cpu_set_to_range_string() only for actual ... (diff)
downloadsystemd-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.c5
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];