diff options
author | Thomas Haller <thaller@redhat.com> | 2018-11-27 12:59:33 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-12-19 09:23:08 +0100 |
commit | d11572ac42630d476058448fb988359443ddc0f0 (patch) | |
tree | 8c307b92654a58f8b27844bb993a9b60f9f7da64 | |
parent | a057d8c3fa04f812ebbb1d1e24c1218e2c4c0627 (diff) | |
download | NetworkManager-d11572ac42630d476058448fb988359443ddc0f0.tar.gz |
dhcp: fix signedness of loop variable in lease_to_ip4_config()
The loop variable should have the same type as the variable
that holds the number of elements ("num", in this case).
-rw-r--r-- | src/dhcp/nm-dhcp-systemd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcp/nm-dhcp-systemd.c b/src/dhcp/nm-dhcp-systemd.c index e31a526366..bc90db0c64 100644 --- a/src/dhcp/nm-dhcp-systemd.c +++ b/src/dhcp/nm-dhcp-systemd.c @@ -244,13 +244,13 @@ lease_to_ip4_config (NMDedupMultiIndex *multi_idx, char addr_str[NM_UTILS_INET_ADDRSTRLEN]; char addr_str2[NM_UTILS_INET_ADDRSTRLEN]; const char *s; - guint32 lifetime = 0, i; + guint32 lifetime = 0; NMPlatformIP4Address address; nm_auto_free_gstring GString *str = NULL; gs_free sd_dhcp_route **routes = NULL; const char *const*search_domains = NULL; guint16 mtu; - int r, num; + int r, i, num; guint64 end_time; const void *data; gsize data_len; |