Re: [PATCH] maint: avoid comparisons to bool constants

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

 



On 05/06/2011 12:42 AM, Matthias Bolte wrote:
> 2011/5/5 Eric Blake <eblake@xxxxxxxxxx>:
>> HACKING already mentions that comparisons against literal 'true'
>> are unsafe; for consistency, also shorten comparisons against 'false'.
>>
>> * src/conf/domain_conf.c (virDomainNetDefParseXML): Simplify.
>> * src/nwfilter/nwfilter_gentech_driver.c
>> (virNWFilterDomainFWUpdateCB): Likewise.
>> * tools/virsh.c (cmdVolDownload, vshCommandRun, vshPrintExtra):
>> Likewise.
>> ---
>>  src/conf/domain_conf.c                 |    2 +-
>>  src/nwfilter/nwfilter_gentech_driver.c |    2 +-
>>  tools/virsh.c                          |    8 ++++----
>>  3 files changed, 6 insertions(+), 6 deletions(-)
>>
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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