diff options
author | Susant Sahani <ssahani@gmail.com> | 2021-01-15 20:30:04 +0100 |
---|---|---|
committer | Susant Sahani <ssahani@gmail.com> | 2021-01-15 20:30:04 +0100 |
commit | f4c6fcd7661b7e41faa1b874e3aad014cfbea198 (patch) | |
tree | b5859fdc9f062901ca157e9075ef1c6fb058c630 /src/network/netdev | |
parent | network: generator tighten variable scope used in loop (diff) | |
download | systemd-f4c6fcd7661b7e41faa1b874e3aad014cfbea198.tar.xz systemd-f4c6fcd7661b7e41faa1b874e3aad014cfbea198.zip |
network: macsec - tighten variable scope used in loop
Diffstat (limited to 'src/network/netdev')
-rw-r--r-- | src/network/netdev/macsec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/netdev/macsec.c b/src/network/netdev/macsec.c index 27fc2fd5e5..37178709cc 100644 --- a/src/network/netdev/macsec.c +++ b/src/network/netdev/macsec.c @@ -370,7 +370,6 @@ static int netdev_macsec_configure_receive_association(NetDev *netdev, ReceiveAs static int macsec_receive_channel_handler(sd_netlink *rtnl, sd_netlink_message *m, ReceiveChannel *c) { NetDev *netdev; - unsigned i; int r; assert(c); @@ -395,7 +394,7 @@ static int macsec_receive_channel_handler(sd_netlink *rtnl, sd_netlink_message * log_netdev_debug(netdev, "Receive channel is configured"); - for (i = 0; i < c->n_rxsa; i++) { + for (unsigned i = 0; i < c->n_rxsa; i++) { r = netdev_macsec_configure_receive_association(netdev, c->rxsa[i]); if (r < 0) { log_netdev_warning_errno(netdev, r, |