summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-speed-meter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-speed-meter.c')
-rw-r--r--src/network/networkd-speed-meter.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-speed-meter.c b/src/network/networkd-speed-meter.c
index e7f0682c3e..97204c89e9 100644
--- a/src/network/networkd-speed-meter.c
+++ b/src/network/networkd-speed-meter.c
@@ -44,7 +44,6 @@ static int process_message(Manager *manager, sd_netlink_message *message) {
static int speed_meter_handler(sd_event_source *s, uint64_t usec, void *userdata) {
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
Manager *manager = userdata;
- sd_netlink_message *i;
usec_t usec_now;
Link *link;
int r;
@@ -84,7 +83,7 @@ static int speed_meter_handler(sd_event_source *s, uint64_t usec, void *userdata
return 0;
}
- for (i = reply; i; i = sd_netlink_message_next(i))
+ for (sd_netlink_message *i = reply; i; i = sd_netlink_message_next(i))
(void) process_message(manager, i);
return 0;