It needs to be used by a function that only has a const pointer to virDomainNetDef. Signed-off-by: Laine Stump <laine@xxxxxxxxxx> --- 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 96e9223e21..848c831330 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -29678,7 +29678,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 82631ecb07..b688ee2b83 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -3181,7 +3181,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.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list