Re: [libvirt] PATCH: Fix const-ness for virRun/virExec

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
> The exec() family of UNIX functions have broken const-ness in the argv[]
> parameter. For inexplicable reasons, I followed this brokeness when
> originally doing the virRun/virExec functions. So every caller is either
> using wrong const-ness, or having to cast when calling them. This patch
> fixes the virRun/virExec API const-ness, so we only need apply a cast
> at the time we finally call exec()

+1 to massive cast removal + const-correctness fixes ;-)
Nice.

ACK

--
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]