summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/ovs/_json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ovs/_json.c b/python/ovs/_json.c
index 80bf9dea3..0b980038b 100644
--- a/python/ovs/_json.c
+++ b/python/ovs/_json.c
@@ -50,7 +50,7 @@ Parser_feed(json_ParserObject * self, PyObject * args)
Py_ssize_t input_sz;
PyObject *input;
size_t rd;
- char *input_str;
+ const char *input_str;
if (self->_parser == NULL) {
return NULL;
@@ -111,7 +111,7 @@ json_to_python(struct json *json)
return dict;
}
case JSON_ARRAY:{
- int i;
+ size_t i;
PyObject *arr = PyList_New(json->array.n);
if (arr == NULL) {