mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-28 17:10:23 +00:00
sd-dhcp-lease: fix copy-paste error asserting wrong function argument
This commit is contained in:
committed by
Tom Gundersen
parent
73fc23c064
commit
1c6eb4e36b
@@ -51,7 +51,7 @@ int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) {
|
||||
|
||||
int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime) {
|
||||
assert_return(lease, -EINVAL);
|
||||
assert_return(lease, -EINVAL);
|
||||
assert_return(lifetime, -EINVAL);
|
||||
|
||||
*lifetime = lease->lifetime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user