[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH] maint: avoid comparisons to bool constants
- From: Matthias Bolte <matthias bolte googlemail com>
- To: Eric Blake <eblake redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH] maint: avoid comparisons to bool constants
- Date: Fri, 6 May 2011 08:42:36 +0200
2011/5/5 Eric Blake <eblake redhat com>:
> 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.
Matthias
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]