]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Make virStringArrayHasString() const-correct
authorAndrea Bolognani <abologna@redhat.com>
Tue, 16 Aug 2016 10:20:56 +0000 (12:20 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 16 Aug 2016 17:32:58 +0000 (19:32 +0200)
commit3edcf83433c25ff871ba2be9504128449722fb11
tree8e1446156574aba3f7df75c64b4fa5e6eb89ce5a
parent8c6b29e7b41d678ab9c5542efd607b28776e4f24
util: Make virStringArrayHasString() const-correct

The first argument should be const char ** instead of
char **, because this is a search function and as such it
doesn't, and shouldn't, alter the haystack in any way.

This change means we no longer have to cast arrays of
immutable strings to arrays of mutable strings; we still
have to do the opposite, though, but that's reasonable.
src/lxc/lxc_native.c
src/qemu/qemu_capabilities.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_process.c
src/util/virstring.c
src/util/virstring.h
tests/qemumonitorjsontest.c