[libvirt] [PATCH] virjson: Remove const from virJSONValueObjectForeachKeyValue

Peter Krempa pkrempa at redhat.com
Wed Dec 14 15:27:46 UTC 2016


On Wed, Dec 14, 2016 at 15:36:17 +0100, Jiri Denemark wrote:
> Almost none of our virJSONValue*Get* functions accept const virJSONValue
> pointers and it wouldn't even make sense since we sometimes modify what
> we get. And because there is no reason for preventing callers of
> virJSONValueObjectForeachKeyValue from modifying the values they get in
> each iteration we can just stop doing it.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/util/virjson.c        |  2 +-
>  src/util/virjson.h        |  4 ++--
>  src/util/virqemu.c        | 16 ++++++++--------
>  src/util/virqemu.h        | 10 +++++-----
>  src/util/virstoragefile.c |  2 +-
>  5 files changed, 17 insertions(+), 17 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161214/aff24dc9/attachment-0001.sig>


More information about the libvir-list mailing list