From: Jan Engelhardt Date: Mon, 31 Jan 2011 01:41:23 +0000 (+0100) Subject: iptables: remove more redundant casts X-Git-Tag: v1.4.11~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb8be30857edd501e701c2f22db6c59bd6839c87;p=thirdparty%2Fiptables.git iptables: remove more redundant casts Signed-off-by: Jan Engelhardt --- 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; diff --git a/iptables-restore.c b/iptables-restore.c index cd23cfa2..e2d1859e 100644 --- a/iptables-restore.c +++ b/iptables-restore.c @@ -83,9 +83,7 @@ static int parse_counters(char *string, struct ipt_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;