From 5e1ec7b267b214f3647d4248b4021ad0bafbb434 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 20 Apr 2012 10:45:48 +0200 Subject: qemu-timer: Use bool, false, true for boolean values This avoids conversions between int and bool / char. It also makes the code more readable. Reviewed-by: Paolo Bonzini Signed-off-by: Stefan Weil --- qemu-timer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qemu-timer.h') diff --git a/qemu-timer.h b/qemu-timer.h index 623c79334d..5175419e5f 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -36,7 +36,7 @@ int64_t qemu_get_clock_ns(QEMUClock *clock); int64_t qemu_clock_has_timers(QEMUClock *clock); int64_t qemu_clock_expired(QEMUClock *clock); int64_t qemu_clock_deadline(QEMUClock *clock); -void qemu_clock_enable(QEMUClock *clock, int enabled); +void qemu_clock_enable(QEMUClock *clock, bool enabled); void qemu_clock_warp(QEMUClock *clock); void qemu_register_clock_reset_notifier(QEMUClock *clock, Notifier *notifier); @@ -49,8 +49,8 @@ void qemu_free_timer(QEMUTimer *ts); void qemu_del_timer(QEMUTimer *ts); void qemu_mod_timer_ns(QEMUTimer *ts, int64_t expire_time); void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time); -int qemu_timer_pending(QEMUTimer *ts); -int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time); +bool qemu_timer_pending(QEMUTimer *ts); +bool qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time); uint64_t qemu_timer_expire_time_ns(QEMUTimer *ts); void qemu_run_timers(QEMUClock *clock); -- cgit v1.2.3