[libvirt] [PATCH 1/2] event: use bool in more places

Osier Yang jyang at redhat.com
Mon Jan 6 10:35:52 UTC 2014


On 04/01/14 03:31, Eric Blake wrote:
> No need to use an int that only ever stores 0 and 1.
>
> * src/conf/object_event_private.h (_virObjectEventCallback):
> Change deleted to bool.
> * src/conf/object_event.c (virObjectEventDispatchMatchCallback):
> Switch return type to bool.
> (virObjectEventCallbackListMarkDeleteID): Update client.
> * src/conf/domain_event.c (virDomainEventCallbackListMarkDelete):
> Likewise.
> ---
>   src/conf/domain_event.c         |  2 +-
>   src/conf/object_event.c         | 20 ++++++++------------
>   src/conf/object_event_private.h |  2 +-
>   3 files changed, 10 insertions(+), 14 deletions(-)
ACK




More information about the libvir-list mailing list