diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-09-08 18:32:54 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-10-24 14:20:48 +0900 |
commit | d56d6cb8cab19ec042efc8987a1684bbc4157328 (patch) | |
tree | af868459cf0329e854421bccbd2a8871063ead64 | |
parent | 882e21c72ff93795467cdd7e83a597a9cab1f2ea (diff) | |
download | systemd-d56d6cb8cab19ec042efc8987a1684bbc4157328.tar.gz systemd-d56d6cb8cab19ec042efc8987a1684bbc4157328.tar.bz2 systemd-d56d6cb8cab19ec042efc8987a1684bbc4157328.zip |
networkctl: fix error message
-rw-r--r-- | src/network/networkctl.c | 3 |
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]; |