summaryrefslogtreecommitdiffstats
path: root/ip6tables-restore.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-01-31 02:41:23 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-01-31 02:43:23 +0100
commitbb8be30857edd501e701c2f22db6c59bd6839c87 (patch)
treef114ce7fc0aaef6538ba2d4892e4b5a9db23efb9 /ip6tables-restore.c
parent00696591b1f2582cb0c5a8c1887c2f24b6aafedd (diff)
iptables: remove more redundant casts
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'ip6tables-restore.c')
-rw-r--r--ip6tables-restore.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index d8a45da9..44a051f2 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -83,9 +83,7 @@ static int parse_counters(char *string, struct ip6t_counters *ctr)
unsigned long long pcnt, bcnt;
int ret;
- ret = sscanf(string, "[%llu:%llu]",
- (unsigned long long *)&pcnt,
- (unsigned long long *)&bcnt);
+ ret = sscanf(string, "[%llu:%llu]", &pcnt, &bcnt);
ctr->pcnt = pcnt;
ctr->bcnt = bcnt;
return ret == 2;