]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: avoid parameter named 'listen'
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Sep 2016 14:49:28 +0000 (15:49 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Sep 2016 14:49:28 +0000 (15:49 +0100)
previous commit:

  commit 2c3223785c121eafbdd503f11549d7964461934f
  Author: John Ferlan <jferlan@redhat.com>
  Date:   Mon Jun 13 12:30:34 2016 -0400

    qemu: Add the ability to hotplug the TLS X.509 environment

added a parameter "bool listen" in some methods. This
unfortunately clashes with the listen() method, causing
compile failures on certain platforms (RHEL-6 for example)

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_command.h

index e0b04017b051d80a3193e2e8706cafe8fe623451..3a61863b9abb1850e77f45981543df7c6f351006 100644 (file)
@@ -692,7 +692,7 @@ qemuBuildRBDSecinfoURI(virBufferPtr buf,
  */
 int
 qemuBuildTLSx509BackendProps(const char *tlspath,
-                             bool listen,
+                             bool isListen,
                              bool verifypeer,
                              virQEMUCapsPtr qemuCaps,
                              virJSONValuePtr *propsret)
@@ -714,7 +714,7 @@ qemuBuildTLSx509BackendProps(const char *tlspath,
 
     if (virJSONValueObjectCreate(propsret,
                                  "s:dir", path,
-                                 "s:endpoint", (listen ? "server": "client"),
+                                 "s:endpoint", (isListen ? "server": "client"),
                                  "b:verify-peer", verifypeer,
                                  NULL) < 0)
         goto cleanup;
@@ -743,7 +743,7 @@ qemuBuildTLSx509BackendProps(const char *tlspath,
 static int
 qemuBuildTLSx509CommandLine(virCommandPtr cmd,
                             const char *tlspath,
-                            bool listen,
+                            bool isListen,
                             bool verifypeer,
                             const char *inalias,
                             virQEMUCapsPtr qemuCaps)
@@ -753,7 +753,7 @@ qemuBuildTLSx509CommandLine(virCommandPtr cmd,
     virJSONValuePtr props = NULL;
     char *tmp = NULL;
 
-    if (qemuBuildTLSx509BackendProps(tlspath, listen, verifypeer,
+    if (qemuBuildTLSx509BackendProps(tlspath, isListen, verifypeer,
                                      qemuCaps, &props) < 0)
         return -1;
 
index b7c59bb9e61e62f987ebbc4b329a5ce960b78e17..0c0b8f1a3853bce52d0ff4a2fb8e84e5ff7cf294 100644 (file)
@@ -67,7 +67,7 @@ int qemuBuildSecretInfoProps(qemuDomainSecretInfoPtr secinfo,
 
 /* Generate the object properties for a tls-creds-x509 */
 int qemuBuildTLSx509BackendProps(const char *tlspath,
-                                 bool listen,
+                                 bool isListen,
                                  bool verifypeer,
                                  virQEMUCapsPtr qemuCaps,
                                  virJSONValuePtr *propsret);