[systemd-devel] [PATCH 1/1] sd-dhcp-lease: fix copy-paste error asserting wrong function argument
Tom Gundersen
teg at jklm.no
Wed Nov 19 05:07:51 PST 2014
Applied. Thanks!
On Wed, Nov 19, 2014 at 1:57 PM, Thomas Haller <thaller at redhat.com> wrote:
> ---
> src/libsystemd-network/sd-dhcp-lease.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c
> index f046ac5..3da71a2 100644
> --- a/src/libsystemd-network/sd-dhcp-lease.c
> +++ b/src/libsystemd-network/sd-dhcp-lease.c
> @@ -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;
>
> --
> 1.9.3
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list