render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
99cbc7
From b1ce2d024e4049c1e103f56a2ed86db9aa0e14d1 Mon Sep 17 00:00:00 2001
99cbc7
Message-Id: <b1ce2d024e4049c1e103f56a2ed86db9aa0e14d1@dist-git>
99cbc7
From: Laine Stump <laine@redhat.com>
99cbc7
Date: Mon, 16 Sep 2019 09:54:04 -0400
99cbc7
Subject: [PATCH] conf: make arg to virDomainNetGetActualVirtPortProfile() a
99cbc7
 const
99cbc7
MIME-Version: 1.0
99cbc7
Content-Type: text/plain; charset=UTF-8
99cbc7
Content-Transfer-Encoding: 8bit
99cbc7
99cbc7
It needs to be used by a function that only has a const pointer to
99cbc7
virDomainNetDef.
99cbc7
99cbc7
Signed-off-by: Laine Stump <laine@redhat.com>
99cbc7
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
99cbc7
(cherry picked from commit 57de1988c4c2b015a5f459a5504a814833ffa194)
99cbc7
99cbc7
  https://bugzilla.redhat.com/1502754
99cbc7
99cbc7
Signed-off-by: Laine Stump <laine@redhat.com>
99cbc7
Message-Id: <20190916135406.18523-2-laine@redhat.com>
99cbc7
Reviewed-by: Ján Tomko <jtomko@redhat.com>
99cbc7
---
99cbc7
 src/conf/domain_conf.c | 2 +-
99cbc7
 src/conf/domain_conf.h | 2 +-
99cbc7
 2 files changed, 2 insertions(+), 2 deletions(-)
99cbc7
99cbc7
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
99cbc7
index 637d971e21..0352fad245 100644
99cbc7
--- a/src/conf/domain_conf.c
99cbc7
+++ b/src/conf/domain_conf.c
99cbc7
@@ -29384,7 +29384,7 @@ virDomainNetGetActualHostdev(virDomainNetDefPtr iface)
99cbc7
 }
99cbc7
 
99cbc7
 virNetDevVPortProfilePtr
99cbc7
-virDomainNetGetActualVirtPortProfile(virDomainNetDefPtr iface)
99cbc7
+virDomainNetGetActualVirtPortProfile(const virDomainNetDef *iface)
99cbc7
 {
99cbc7
     switch (iface->type) {
99cbc7
     case VIR_DOMAIN_NET_TYPE_DIRECT:
99cbc7
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
99cbc7
index 0989368e7c..1c4556cecd 100644
99cbc7
--- a/src/conf/domain_conf.h
99cbc7
+++ b/src/conf/domain_conf.h
99cbc7
@@ -3193,7 +3193,7 @@ const char *virDomainNetGetActualDirectDev(virDomainNetDefPtr iface);
99cbc7
 int virDomainNetGetActualDirectMode(virDomainNetDefPtr iface);
99cbc7
 virDomainHostdevDefPtr virDomainNetGetActualHostdev(virDomainNetDefPtr iface);
99cbc7
 virNetDevVPortProfilePtr
99cbc7
-virDomainNetGetActualVirtPortProfile(virDomainNetDefPtr iface);
99cbc7
+virDomainNetGetActualVirtPortProfile(const virDomainNetDef *iface);
99cbc7
 virNetDevBandwidthPtr
99cbc7
 virDomainNetGetActualBandwidth(virDomainNetDefPtr iface);
99cbc7
 virNetDevVlanPtr virDomainNetGetActualVlan(virDomainNetDefPtr iface);
99cbc7
-- 
99cbc7
2.23.0
99cbc7