diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-01-13 17:34:01 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-02-17 08:33:32 -0600 |
commit | 31552529a7eba5011dac74bab18a852860c45c9d (patch) | |
tree | dda9b8146324b71445dd563530670e6b4da8c5e4 /qemu-timer.c | |
parent | c77de088b1067fc0e0df322e5bac60a3a26a0613 (diff) | |
download | qemu-31552529a7eba5011dac74bab18a852860c45c9d.zip qemu-31552529a7eba5011dac74bab18a852860c45c9d.tar.gz qemu-31552529a7eba5011dac74bab18a852860c45c9d.tar.bz2 |
notifier: switch to QLIST
Notifiers do not need to access both ends of the list, and using
a QLIST also simplifies the API.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-timer.c')
-rw-r--r-- | qemu-timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-timer.c b/qemu-timer.c index a22f27e..d7f56e5 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -453,7 +453,7 @@ void qemu_register_clock_reset_notifier(QEMUClock *clock, Notifier *notifier) void qemu_unregister_clock_reset_notifier(QEMUClock *clock, Notifier *notifier) { - notifier_list_remove(&clock->reset_notifiers, notifier); + notifier_remove(notifier); } void init_clocks(void) |