From af3dd9fd70bd6d55742ec30b5dc484feb88e9d5a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 7 Apr 2011 17:36:07 +0100 Subject: [PATCH] dbus-mainloop: stylistic fix: don't use link->data directly --- dbus/dbus-mainloop.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dbus/dbus-mainloop.c b/dbus/dbus-mainloop.c index 85b9ae2..0761f00 100644 --- a/dbus/dbus-mainloop.c +++ b/dbus/dbus-mainloop.c @@ -850,17 +850,19 @@ _dbus_loop_iterate (DBusLoop *loop, link != NULL; link = next) { + DBusWatch *watch = link->data; + next = _dbus_list_get_next_link (watches, link); - if (dbus_watch_get_enabled (link->data)) + if (dbus_watch_get_enabled (watch)) { dbus_bool_t oom; - oom = !dbus_watch_handle (link->data, condition); + oom = !dbus_watch_handle (watch, condition); if (oom) { - _dbus_watch_set_oom_last_time (link->data, TRUE); + _dbus_watch_set_oom_last_time (watch, TRUE); } #if MAINLOOP_SPEW -- 1.7.4.1