]> xenbits.xensource.com Git - libvirt.git/commit
conf: make virDomainNetGetActualBandwidth arg/return value const
authorLaine Stump <laine@redhat.com>
Tue, 1 Oct 2019 16:52:03 +0000 (12:52 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 25 Nov 2019 20:29:51 +0000 (15:29 -0500)
commit583ac17f5da0c2154ec89b3585519d8a321941a1
tree0674f6b68f8da62a728a1b79f6702da91e95996b
parent12207fcfcfefb7d954753db3b8b14d7655cd9ef4
conf: make virDomainNetGetActualBandwidth arg/return value const

In this case, the virNetDevBandwidthPtr that is returned is not to a
region within the virDomainNetDef arg, but points elsewhere (the
NetDef has the pointer, not the entire object), so technically it's
not necessary to make the return value a const, but it's a bit
disingenuous to *not* do it.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/netdev_bandwidth_conf.c
src/conf/netdev_bandwidth_conf.h
src/libxl/libxl_conf.c
src/lxc/lxc_driver.c
src/lxc/lxc_process.c
src/qemu/qemu_command.c
src/qemu/qemu_hotplug.c
src/util/virnetdevbandwidth.c
src/util/virnetdevbandwidth.h