git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f669e7f
)
ofp-parse: Suppress GCC warning about comparing an unsigned value < 0.
author
Bryan Phillippe
<bp@toroki.com>
Fri, 20 Aug 2010 16:22:46 +0000
(09:22 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 20 Aug 2010 17:45:21 +0000
(10:45 -0700)
lib/ofp-parse.c
patch
|
blob
|
history
diff --git
a/lib/ofp-parse.c
b/lib/ofp-parse.c
index
bcd608b
..
a17d75c
100644
(file)
--- 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);
}