From: Bryan Phillippe Date: Fri, 20 Aug 2010 16:22:46 +0000 (-0700) Subject: ofp-parse: Suppress GCC warning about comparing an unsigned value < 0. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a112265c8b32101f74815398295d054da1714e21;p=sliver-openvswitch.git ofp-parse: Suppress GCC warning about comparing an unsigned value < 0. --- diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index bcd608ba0..a17d75c04 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -445,7 +445,7 @@ parse_ofp_str(char *string, struct ofp_match *match, struct ofpbuf *actions, if (table_idx && !strcmp(name, "table")) { *table_idx = atoi(value); - if (*table_idx < 0 || *table_idx > 31) { + if (*table_idx > 31) { ovs_fatal(0, "table %s is invalid, " "must be between 0 and 31", value); }