[libvirt] [PATCH] virsh: nuke use of TRUE and FALSE

Matthias Bolte matthias.bolte at googlemail.com
Tue Apr 19 06:23:09 UTC 2011


2011/4/19 Eric Blake <eblake at redhat.com>:
> Gnulib already guarantees <stdbool.h>, so it is easier to just
> use the standardized spellings.
>
> * tools/virsh.c (vshCmdDef): Change callback to return real bool.
> (__vshControl): Change several fields to bool.
> (vshCommandOptBool): Change return type.
> All callers updated.
> * tools/Makefile.am (virsh-net-edit.c, virsh-pool-edit.c):
> Likewise.
> ---
>
> Mostly mechanical.
>
>  tools/Makefile.am |    4 +-
>  tools/virsh.c     | 1674 ++++++++++++++++++++++++++---------------------------
>  2 files changed, 835 insertions(+), 843 deletions(-)
>

Looks good in general, but you missed some places for s/int/bool/.
Instead of pointing them out in the diff, here's a patch to be merged
into yours.

ACK with the attached patch merged in.

Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: additions_to_virsh_nuke_use_of_TRUE_and_FALSE.patch
Type: text/x-patch
Size: 6695 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110419/06cc12cc/attachment-0001.bin>


More information about the libvir-list mailing list