From f13f20f335d33103bf755d9b3be7c7527c6e7c66 Mon Sep 17 00:00:00 2001 From: Jia He Date: Fri, 11 Oct 2019 23:19:28 +0800 Subject: [PATCH] Fix compilation warning Fix warning about comparison between signed and unsigned integer in proto.c by changing idx from int to unsigned int. Signed-off-by: Jia He Reviewed-by: Felipe Huici --- proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto.c b/proto.c index 517f258..0127355 100644 --- a/proto.c +++ b/proto.c @@ -27,7 +27,7 @@ /* do we really need all these?? */ -static int idx; +static size_t idx; static const unsigned char protos[] = { "\000ip\0" "\001icmp\0" -- 2.39.5