network: use consistent type when parsing lifetimes

Those fields are both uint32_t, so we should use the same type when parsing.
Having a different type didn't change the result, but let's be consistent.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-05-21 08:17:45 +02:00
parent f198303902
commit d273579667
2 changed files with 3 additions and 3 deletions

View File

@ -954,7 +954,7 @@ int config_parse_lifetime(const char *unit,
void *userdata) {
Network *network = userdata;
_cleanup_(address_free_or_set_invalidp) Address *n = NULL;
unsigned k;
uint32_t k;
int r;
assert(filename);
@ -979,7 +979,7 @@ int config_parse_lifetime(const char *unit,
}
n->cinfo.ifa_prefered = k;
n = NULL;
TAKE_PTR(n);
return 0;
}

View File

@ -1691,7 +1691,7 @@ int config_parse_dhcp_fallback_lease_lifetime(const char *unit,
void *data,
void *userdata) {
Network *network = userdata;
unsigned k;
uint32_t k;
assert(filename);
assert(section);