git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare for post-2.2.0 (2.2.90).
[sliver-openvswitch.git]
/
lib
/
ovsdb-parser.c
diff --git
a/lib/ovsdb-parser.c
b/lib/ovsdb-parser.c
index
e1832a9
..
f4642ad
100644
(file)
--- a/
lib/ovsdb-parser.c
+++ b/
lib/ovsdb-parser.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009, 2011
Nicira Networks
+/* Copyright (c) 2009, 2011
, 2013 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-80,7
+80,7
@@
ovsdb_parser_member(struct ovsdb_parser *parser, const char *name,
return NULL;
}
return NULL;
}
- if ((value->type >= 0 && value->type < JSON_N_TYPES
+ if ((
(int)
value->type >= 0 && value->type < JSON_N_TYPES
&& types & (1u << value->type))
|| (types & OP_ID && value->type == JSON_STRING
&& ovsdb_parser_is_id(value->u.string)))
&& types & (1u << value->type))
|| (types & OP_ID && value->type == JSON_STRING
&& ovsdb_parser_is_id(value->u.string)))
@@
-142,7
+142,7
@@
ovsdb_parser_finish(struct ovsdb_parser *parser)
if (n_unused > 1) {
ovsdb_parser_raise_error(
parser,
if (n_unused > 1) {
ovsdb_parser_raise_error(
parser,
- "Member '%s' and %
zu
other member%s "
+ "Member '%s' and %
"PRIuSIZE"
other member%s "
"are present but not allowed here.",
node->name, n_unused - 1, n_unused > 2 ? "s" : "");
} else {
"are present but not allowed here.",
node->name, n_unused - 1, n_unused > 2 ? "s" : "");
} else {