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