diff options
author | Tom Gundersen <teg@jklm.no> | 2015-01-13 23:03:11 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-01-13 23:03:11 +0100 |
commit | f0c4b1c3fd827b429ba36aa45fd39e0a023cbf2c (patch) | |
tree | acf63f10a03907abe79c07a6ff4dd25fb4371409 /src/libsystemd-network/sd-dhcp6-client.c | |
parent | ab5e3a1bccaf79d65c93fc15ddeaa7595ffe0b86 (diff) |
refcnt: refcnt is unsigned, fix comparisons
This does not make a difference, but the code was confusing.
Diffstat (limited to 'src/libsystemd-network/sd-dhcp6-client.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index 017371e837..2bbed7d91f 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -1254,7 +1254,7 @@ sd_dhcp6_client *sd_dhcp6_client_ref(sd_dhcp6_client *client) { } sd_dhcp6_client *sd_dhcp6_client_unref(sd_dhcp6_client *client) { - if (client && REFCNT_DEC(client->n_ref) <= 0) { + if (client && REFCNT_DEC(client->n_ref) == 0) { client_reset(client); sd_dhcp6_client_detach_event(client); |