From b2eaec6671ff7ff44bb2f93881ad30e6d6ba0d24 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 9 Nov 2015 15:40:47 +0100 Subject: 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 --- proto_icmpv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto_icmpv4.c') 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); -- cgit v1.2.3-54-g00ecf