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