]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: remove more redundant casts
authorJan Engelhardt <jengelh@medozas.de>
Mon, 31 Jan 2011 01:41:23 +0000 (02:41 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 31 Jan 2011 01:43:23 +0000 (02:43 +0100)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
ip6tables-restore.c
iptables-restore.c

index d8a45da96eba66952620056ec01cb0849729381c..44a051f2dceb52efef9d880331f91d6f6a6c6050 100644 (file)
@@ -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;
index cd23cfa23dee62265643e685c808e296443aa57f..e2d1859ed7e0cfd8e2aabb3bd2f3cddabc03e753 100644 (file)
@@ -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;