[libvirt] [PATCH] virStringListLength: Ensure const correctness

2016-02-09 Thread Michal Privoznik
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 --- This is hugely driven by a compilation error observed after the

Re: [libvirt] [PATCH] virStringListLength: Ensure const correctness

2016-02-09 Thread Cole Robinson
On 02/09/2016 01:19 PM, Andrea Bolognani wrote: > On Tue, 2016-02-09 at 18:18 +0100, Michal Privoznik wrote: >> 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. >> >>

Re: [libvirt] [PATCH] virStringListLength: Ensure const correctness

2016-02-09 Thread Andrea Bolognani
On Tue, 2016-02-09 at 18:18 +0100, Michal Privoznik wrote: > 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 >