From 82a5eec5713554c431dd5b1e7a76d199aaba9375 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 9 Jul 2018 13:52:45 +0200 Subject: [PATCH] Constify --- client/spa_comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/spa_comm.c b/client/spa_comm.c index 54f52cc5..249033d6 100644 --- a/client/spa_comm.c +++ b/client/spa_comm.c @@ -429,7 +429,7 @@ send_spa_packet_icmp(const char *spa_data, const int sd_len, struct iphdr *iph = (struct iphdr *) pkt_data; struct icmphdr *icmph = (struct icmphdr *) (pkt_data + sizeof (*iph)); - int hdrlen = sizeof(struct iphdr) + sizeof(struct icmphdr); + const size_t hdrlen = sizeof(struct iphdr) + sizeof(struct icmphdr); /* Values for setsockopt. */