Re: [PATCH 14/15] maint: avoid 'const fooPtr' in all remaining places

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 08, 2013 at 11:29:05AM -0600, Eric Blake wrote:
> '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@xxxxxxxxxx>
> ---
>  src/lxc/lxc_process.c | 4 ++--
>  src/uml/uml_driver.c  | 9 +++++----
>  src/xen/xm_internal.c | 4 ++--
>  3 files changed, 9 insertions(+), 8 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]