summaryrefslogtreecommitdiff
path: root/proto_icmpv4.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-09 15:40:47 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-09 15:40:47 +0100
commitb2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 (patch)
tree0c4ddb694da06af1ded2fcd26acf29529c714477 /proto_icmpv4.c
parent66e558ed51ff7d3d7bebb5f5d56114df5eb77e96 (diff)
csum: Remove unused parameter from calc_csum()
The `ccsum' parameter to calc_csum() is never used and is set to 0 by all callers. There's no reason to keep it, so remove it. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_icmpv4.c')
-rw-r--r--proto_icmpv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_icmpv4.c b/proto_icmpv4.c
index 55dd1b7..e6ebd43 100644
--- a/proto_icmpv4.c
+++ b/proto_icmpv4.c
@@ -39,7 +39,7 @@ static void icmp(struct pkt_buff *pkt)
if (icmp == NULL)
return;
- csum = calc_csum(icmp, pkt_len(pkt) + sizeof(*icmp), 0);
+ csum = calc_csum(icmp, pkt_len(pkt) + sizeof(*icmp));
tprintf(" [ ICMP ");
tprintf("Type (%u), ", icmp->type);