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:
parent
f198303902
commit
d273579667
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue