3edcf83 util: Make virStringArrayHasString() const-correct

Authored and Committed by Andrea Bolognani 7 years ago
    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.
    
        
file modified
+3 -2
file modified
+2 -2
file modified
+1 -1
file modified
+3 -1
file modified
+2 -1
file modified
+1 -1
file modified
+5 -5