summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 21:49:30 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-01-26 21:49:30 +0100
commit16cfb322781f4555a2a385a3a9df8edbe5f58fe9 (patch)
tree14a97190b32b72622328e80cd90cc9e7335d8136 /lib
parent61db64b016b7954aa21884f6c3b8bd2ee8e7a5ed (diff)
Resolving IP addresses did not work at listing/saving sets, fixed.
Diffstat (limited to 'lib')
-rw-r--r--lib/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/print.c b/lib/print.c
index b045d17..5284b0a 100644
--- a/lib/print.c
+++ b/lib/print.c
@@ -230,7 +230,7 @@ ipset_print_ip(char *buf, unsigned int len,
D("CIDR: %u", cidr);
} else
cidr = family == AF_INET6 ? 128 : 32;
- flags = env & (1 << IPSET_ENV_RESOLVE) ? 0 : NI_NUMERICHOST;
+ flags = (env & IPSET_ENV_RESOLVE) ? 0 : NI_NUMERICHOST;
ip = ipset_data_get(data, opt);
assert(ip);
@@ -297,7 +297,7 @@ ipset_print_ipaddr(char *buf, unsigned int len,
cidr = *(const uint8_t *) ipset_data_get(data, cidropt);
else
cidr = family == AF_INET6 ? 128 : 32;
- flags = env & (1 << IPSET_ENV_RESOLVE) ? 0 : NI_NUMERICHOST;
+ flags = (env & IPSET_ENV_RESOLVE) ? 0 : NI_NUMERICHOST;
ip = ipset_data_get(data, opt);
assert(ip);