summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-11-13 21:04:39 +0100
committerPhil Sutter <phil@nwl.cc>2021-06-07 14:50:27 +0200
commit97fabae738a74bd04a7793e1199cd2b8a69122bc (patch)
tree6ce461d230f98669fc40655b3960f9447e5475fd /libxtables
parent5818be177110a09120dd8fe4bd2533acbf8da301 (diff)
libxtables: Drop leftover variable in xtables_numeric_to_ip6addr()
Variable 'err' was only used in removed debug code, so drop it as well. Fixes: 7f526c9373c17 ("libxtables: xtables: remove unnecessary debug code") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'libxtables')
-rw-r--r--libxtables/xtables.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index e6edfb5b..82815cae 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -1808,9 +1808,8 @@ const char *xtables_ip6mask_to_numeric(const struct in6_addr *addrp)
struct in6_addr *xtables_numeric_to_ip6addr(const char *num)
{
static struct in6_addr ap;
- int err;
- if ((err = inet_pton(AF_INET6, num, &ap)) == 1)
+ if (inet_pton(AF_INET6, num, &ap) == 1)
return &ap;
return NULL;