util: json: Make first argument of virJSONValueObjectForeachKeyValue const

The iterator function (second argument) already requires that the object
is handled as 'const' thus we won't modify the object itself.
This commit is contained in:
Peter Krempa 2016-07-22 16:56:37 +02:00
parent 4e3dbfa2a5
commit bc4339719e
2 changed files with 2 additions and 2 deletions

View File

@ -1220,7 +1220,7 @@ virJSONValueObjectIsNull(virJSONValuePtr object,
* during iteration and -1 on generic errors.
*/
int
virJSONValueObjectForeachKeyValue(virJSONValuePtr object,
virJSONValueObjectForeachKeyValue(const virJSONValue *object,
virJSONValueObjectIteratorFunc cb,
void *opaque)
{

View File

@ -167,7 +167,7 @@ typedef int (*virJSONValueObjectIteratorFunc)(const char *key,
const virJSONValue *value,
void *opaque);
int virJSONValueObjectForeachKeyValue(virJSONValuePtr object,
int virJSONValueObjectForeachKeyValue(const virJSONValue *object,
virJSONValueObjectIteratorFunc cb,
void *opaque);