summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-09-08 18:32:54 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-24 14:20:48 +0900
commitd56d6cb8cab19ec042efc8987a1684bbc4157328 (patch)
treeaf868459cf0329e854421bccbd2a8871063ead64
parent882e21c72ff93795467cdd7e83a597a9cab1f2ea (diff)
downloadsystemd-d56d6cb8cab19ec042efc8987a1684bbc4157328.tar.gz
systemd-d56d6cb8cab19ec042efc8987a1684bbc4157328.tar.bz2
systemd-d56d6cb8cab19ec042efc8987a1684bbc4157328.zip
networkctl: fix error message
-rw-r--r--src/network/networkctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 5f90e49db0..64778d6e84 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -1759,7 +1759,8 @@ static int link_delete(int argc, char *argv[], void *userdata) {
}
SET_FOREACH(p, indexes, j) {
- r = link_delete_send_message(rtnl, PTR_TO_INT(p));
+ index = PTR_TO_INT(p);
+ r = link_delete_send_message(rtnl, index);
if (r < 0) {
char ifname[IF_NAMESIZE + 1];