From: Jia He Date: Fri, 11 Oct 2019 15:19:28 +0000 (+0800) Subject: Fix compilation warning X-Git-Tag: RELEASE-0.4~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f13f20f335d33103bf755d9b3be7c7527c6e7c66;p=unikraft%2Flibs%2Flwip.git 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 --- 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"