]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix build on RHEL 6
authorEric Blake <eblake@redhat.com>
Mon, 27 Mar 2017 13:11:26 +0000 (08:11 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 27 Mar 2017 13:12:18 +0000 (08:12 -0500)
commit044198476adbda1c6acf6b65e3277a7f93e09786
treea1824be6069f85104bb5389e317f69ef782b11ac
parentad589e1f52b3406ac7554e0b974d67a87e8d2689
util: fix build on RHEL 6

We keep forgetting that older setups don't like 'index':

  CC     util/libvirt_util_la-virsysinfo.lo
cc1: warnings being treated as errors
util/virstoragefile.c: In function 'virStorageSourceFindByNodeName':
util/virstoragefile.c:3804: error: declaration of 'index' shadows a global declaration [-Wshadow]
/usr/include/string.h:489: error: shadowed declaration is here [-Wshadow]

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virstoragefile.c