mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virdbus: Use the mnemonic macros for dbus_bool_t values
Use the mnemonic macros of libdbus for 1 (TRUE) and 0 (FALSE). Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Stefan Zimmermann <stzi@linux.ibm.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
07e01beb35
commit
9580c09163
@ -236,7 +236,7 @@ static dbus_bool_t virDBusAddWatch(DBusWatch *watch,
|
||||
struct virDBusWatch *info;
|
||||
|
||||
if (VIR_ALLOC(info) < 0)
|
||||
return 0;
|
||||
return FALSE;
|
||||
|
||||
if (dbus_watch_get_enabled(watch))
|
||||
flags = virDBusTranslateWatchFlags(dbus_watch_get_flags(watch));
|
||||
@ -253,10 +253,10 @@ static dbus_bool_t virDBusAddWatch(DBusWatch *watch,
|
||||
watch, NULL);
|
||||
if (info->watch < 0) {
|
||||
dbus_watch_set_data(watch, NULL, NULL);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return 1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user