]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: fix build issue caused by shadowing global declaration
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 May 2017 12:31:26 +0000 (14:31 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 24 May 2017 12:31:26 +0000 (14:31 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/domain_conf.c

index 32234e8a542b44ea476d7a8a60565253514a601e..d3c6e9c0abdeb3341a9fa34bd236b91632b9d997 100644 (file)
@@ -3525,12 +3525,12 @@ void virDomainDeviceInfoClear(virDomainDeviceInfoPtr info)
 
 static bool
 virDomainSkipBackcompatConsole(virDomainDefPtr def,
-                               size_t index,
+                               size_t idx,
                                bool all)
 {
-    virDomainChrDefPtr console = def->consoles[index];
+    virDomainChrDefPtr console = def->consoles[idx];
 
-    if (!all && index == 0 &&
+    if (!all && idx == 0 &&
         (console->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL ||
          console->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_NONE) &&
         def->os.type == VIR_DOMAIN_OSTYPE_HVM) {