[gnome-packagekit] Fix compile with -Wshadow



commit c03b65c68c63f43f372c49347715c46dc14598b7
Author: Richard Hughes <richard hughsie com>
Date:   Sat May 15 17:07:56 2010 +0100

    Fix compile with -Wshadow

 src/gpk-update-viewer.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 49ab574..a8435cc 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -664,14 +664,14 @@ static void
 gpk_update_viewer_add_active_row (GtkTreeModel *model, GtkTreePath *path)
 {
 	GtkTreeRowReference *ref;
-	GSList *link = NULL;
+	GSList *row = NULL;
 
 	/* check if already active */
 	ref = gtk_tree_row_reference_new (model, path);
 	if (ref == NULL)
 		goto out;
-	link = g_slist_find_custom (active_rows, (gconstpointer)ref, (GCompareFunc)gpk_update_viewer_compare_refs);
-	if (link != NULL) {
+	row = g_slist_find_custom (active_rows, (gconstpointer)ref, (GCompareFunc)gpk_update_viewer_compare_refs);
+	if (row != NULL) {
 		egg_debug ("already active");
 		gtk_tree_row_reference_free (ref);
 		goto out;
@@ -692,7 +692,7 @@ out:
 static void
 gpk_update_viewer_remove_active_row (GtkTreeModel *model, GtkTreePath *path)
 {
-	GSList *link;
+	GSList *row;
 	GtkTreeRowReference *ref;
 	GtkTreeIter iter;
 
@@ -700,16 +700,16 @@ gpk_update_viewer_remove_active_row (GtkTreeModel *model, GtkTreePath *path)
 	gtk_tree_store_set (GTK_TREE_STORE(model), &iter, GPK_UPDATES_COLUMN_PULSE, -1, -1);
 
 	ref = gtk_tree_row_reference_new (model, path);
-	link = g_slist_find_custom (active_rows, (gconstpointer)ref, (GCompareFunc)gpk_update_viewer_compare_refs);
+	row = g_slist_find_custom (active_rows, (gconstpointer)ref, (GCompareFunc)gpk_update_viewer_compare_refs);
 	gtk_tree_row_reference_free (ref);
-	if (link == NULL) {
+	if (row == NULL) {
 		egg_warning ("row not already added");
 		return;
 	}
 
-	active_rows = g_slist_remove_link (active_rows, link);
-	gtk_tree_row_reference_free (link->data);
-	g_slist_free (link);
+	active_rows = g_slist_remove_link (active_rows, row);
+	gtk_tree_row_reference_free (row->data);
+	g_slist_free (row);
 
 	if (active_rows == NULL) {
 		g_source_remove (active_row_timeout_id);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]