]> xenbits.xensource.com Git - libvirt.git/commit
virStringListLength: Ensure const correctness
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Feb 2016 17:18:49 +0000 (18:18 +0100)
committerCole Robinson <crobinso@redhat.com>
Tue, 9 Feb 2016 20:44:58 +0000 (15:44 -0500)
commitd1a71023899b419960df83f81d5ed64268e7b2df
tree4d62e4b1209321381283415cc5c1f01170bf08b3
parent129c35326a39d3149918c8c42d7d8137c7347b32
virStringListLength: Ensure const correctness

The virStringListLength function does not ever modify the passed
string list. It merely counts the items in it. Make sure that we
reflect this bit in the function header.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(crobinso: fix up spacing and squash in sheepdog bit suggested
 by Andrea)
src/lxc/lxc_native.c
src/storage/storage_backend_sheepdog.c
src/storage/storage_driver.c
src/util/virprocess.c
src/util/virstoragefile.c
src/util/virstring.c
src/util/virstring.h
tests/virstringtest.c