mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
util: json: Make first argument of virJSONValueCopy const
It's just read.
This commit is contained in:
parent
707063efa8
commit
22ad4a7c0a
@ -1241,7 +1241,7 @@ virJSONValueObjectForeachKeyValue(const virJSONValue *object,
|
|||||||
|
|
||||||
|
|
||||||
virJSONValuePtr
|
virJSONValuePtr
|
||||||
virJSONValueCopy(virJSONValuePtr in)
|
virJSONValueCopy(const virJSONValue *in)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
virJSONValuePtr out = NULL;
|
virJSONValuePtr out = NULL;
|
||||||
|
@ -171,6 +171,6 @@ int virJSONValueObjectForeachKeyValue(const virJSONValue *object,
|
|||||||
virJSONValueObjectIteratorFunc cb,
|
virJSONValueObjectIteratorFunc cb,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
virJSONValuePtr virJSONValueCopy(virJSONValuePtr in);
|
virJSONValuePtr virJSONValueCopy(const virJSONValue *in);
|
||||||
|
|
||||||
#endif /* __VIR_JSON_H_ */
|
#endif /* __VIR_JSON_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user