]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add missing 'const' annotations for internal domain conf helpers
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Nov 2011 11:18:57 +0000 (11:18 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Nov 2011 16:10:37 +0000 (16:10 +0000)
commit914d1b7403ddc305c26052383cf403f0c7492a1d
tree14225b1cee51b60ae6997e977696e6507b543632
parent0c1587e10b736cc3664d736cbc6c022d44b09646
Add missing 'const' annotations for internal domain conf helpers

The virDomainNetGetActualBridgeName and virDomainNetGetActualDirectDev
methods both return strings that point to data in the virDomainDefPtr
struct, and should therefore not be freed. The return values should
thus be 'const char *' not 'char *'.

* src/conf/domain_conf.c, src/conf/domain_conf.h: Mark const
* src/network/bridge_driver.c: Update to use a const char *
src/conf/domain_conf.c
src/conf/domain_conf.h
src/network/bridge_driver.c