mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05: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:
committed by
John Ferlan
parent
07e01beb35
commit
9580c09163
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user