mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
Rename 'index' in virCapabilitiesGetCpusForNode
This shadows the index function on some systems (RHEL-6.4, FreeBSD 9): ../../src/conf/capabilities.c: In function 'virCapabilitiesGetCpusForNode': ../../src/conf/capabilities.c:1005: warning: declaration of'index' shadows a global declaration [-Wshadow] /usr/include/strings.h:57: warning: shadowed declaration is here [-Wshadow]
This commit is contained in:
parent
eb64e8752b
commit
47fa97a799
@ -1002,11 +1002,11 @@ virCapabilitiesGetCpusForNode(virCapsPtr caps,
|
|||||||
{
|
{
|
||||||
virCapsHostNUMACellPtr cell = NULL;
|
virCapsHostNUMACellPtr cell = NULL;
|
||||||
size_t cpu;
|
size_t cpu;
|
||||||
size_t index;
|
size_t i;
|
||||||
/* The numa node numbers can be non-contiguous. Ex: 0,1,16,17. */
|
/* The numa node numbers can be non-contiguous. Ex: 0,1,16,17. */
|
||||||
for (index = 0; index < caps->host.nnumaCell; index++) {
|
for (i = 0; i < caps->host.nnumaCell; i++) {
|
||||||
if (caps->host.numaCell[index]->num == node) {
|
if (caps->host.numaCell[i]->num == node) {
|
||||||
cell = caps->host.numaCell[index];
|
cell = caps->host.numaCell[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user