mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 23:20:32 +00:00
network: macsec - tighten variable scope used in loop
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user