From 8e65c304315a7f54addd9c2771d20eca007f9d6a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 23 Jun 2012 12:01:40 -0400 Subject: [PATCH] gmain: rename some variables for clarity https://bugzilla.gnome.org/show_bug.cgi?id=619329 --- glib/gmain.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/glib/gmain.c b/glib/gmain.c index 60554f5df..21b3a7245 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -810,32 +810,32 @@ static void g_source_list_add (GSource *source, GMainContext *context) { - GSource *tmp_source, *last_source; + GSource *prev, *next; if (source->priv->parent_source) { /* Put the source immediately before its parent */ - tmp_source = source->priv->parent_source; - last_source = source->priv->parent_source->prev; + prev = source->priv->parent_source->prev; + next = source->priv->parent_source; } else { - last_source = NULL; - tmp_source = context->source_list; - while (tmp_source && tmp_source->priority <= source->priority) + prev = NULL; + next = context->source_list; + while (next && next->priority <= source->priority) { - last_source = tmp_source; - tmp_source = tmp_source->next; + prev = next; + next = next->next; } } - source->next = tmp_source; - if (tmp_source) - tmp_source->prev = source; + source->next = next; + if (next) + next->prev = source; - source->prev = last_source; - if (last_source) - last_source->next = source; + source->prev = prev; + if (prev) + prev->next = source; else context->source_list = source; }