]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Fix compilation warning
authorJia He <justin.he@arm.com>
Fri, 11 Oct 2019 15:19:28 +0000 (23:19 +0800)
committerFelipe Huici <felipe.huici@neclab.eu>
Tue, 26 Nov 2019 04:48:40 +0000 (05:48 +0100)
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 <justin.he@arm.com>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
proto.c

diff --git a/proto.c b/proto.c
index 517f25801766c8899d6421e51b17c2a9d8ccb60c..0127355eca5351d341b0c0b83a648e288f3267be 100644 (file)
--- 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"