]> xenbits.xensource.com Git - libvirt.git/commit
maint: avoid 'const fooPtr' in all remaining places
authorEric Blake <eblake@redhat.com>
Tue, 8 Oct 2013 17:12:17 +0000 (11:12 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 14 Oct 2013 20:34:38 +0000 (14:34 -0600)
commit33aec50684424f42552475f9f59c991f07b8d12b
treecfb05ce5434897fc4adc10acad14c9b645c75e6e
parent9a520a591d9bd77ee85d95a589e08e660c07a675
maint: avoid 'const fooPtr' in all remaining places

'const fooPtr' is the same as 'foo * const' (the pointer won't
change, but it's contents can).  But in general, if an interface
is trying to be const-correct, it should be using 'const foo *'
(the pointer is to data that can't be changed).

Fix up all remaining offenders.

* src/lxc/lxc_process.c (virLXCProcessSetupInterfaceBridged): Drop
needless const.
* src/uml/uml_driver.c (umlMonitorCommand): Use intended type.
(umlMonitorAddress): Fix fallout.
* src/xen/xm_internal.c (xenXMDomainSearchForUUID): Use intended type.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/lxc/lxc_process.c
src/uml/uml_driver.c
src/xen/xm_internal.c