[gnome-packagekit/gnome-2-28] trivial: Work around a unistd.h bug
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit/gnome-2-28] trivial: Work around a unistd.h bug
- Date: Wed, 26 Oct 2016 15:38:28 +0000 (UTC)
commit 30410424c13941867b41bdeb5344aacab5656605
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 26 16:37:37 2016 +0100
trivial: Work around a unistd.h bug
src/gpk-update-viewer.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index ba0afef..3191c94 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -2089,7 +2089,7 @@ gpk_update_viewer_add_active_row (GtkTreeModel *model, GtkTreePath *path)
static void
gpk_update_viewer_remove_active_row (GtkTreeModel *model, GtkTreePath *path)
{
- GSList *link;
+ GSList *link_row;
GtkTreeRowReference *ref;
GtkTreeIter iter;
@@ -2097,13 +2097,13 @@ gpk_update_viewer_remove_active_row (GtkTreeModel *model, GtkTreePath *path)
gtk_list_store_set (GTK_LIST_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);
+ link_row = g_slist_find_custom (active_rows, (gconstpointer)ref,
(GCompareFunc)gpk_update_viewer_compare_refs);
gtk_tree_row_reference_free (ref);
- g_assert (link);
+ g_assert (link_row);
- 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, link_row);
+ gtk_tree_row_reference_free (link_row->data);
+ g_slist_free (link_row);
if (active_rows == NULL) {
g_source_remove (active_row_timeout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]