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-icmp6-nd.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-icmp6-nd.c')
-rw-r--r-- | src/libsystemd-network/sd-icmp6-nd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-icmp6-nd.c b/src/libsystemd-network/sd-icmp6-nd.c index fbaf093ad8..d2bff8fcf6 100644 --- a/src/libsystemd-network/sd-icmp6-nd.c +++ b/src/libsystemd-network/sd-icmp6-nd.c @@ -145,7 +145,7 @@ static int icmp6_nd_init(sd_icmp6_nd *nd) { } sd_icmp6_nd *sd_icmp6_nd_unref(sd_icmp6_nd *nd) { - if (nd && REFCNT_DEC(nd->n_ref) <= 0) { + if (nd && REFCNT_DEC(nd->n_ref) == 0) { icmp6_nd_init(nd); sd_icmp6_nd_detach_event(nd); |