summaryrefslogtreecommitdiff
path: root/thunarx
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-11-04 10:23:05 +0100
committerNick Schermer <nick@xfce.org>2012-11-04 10:39:48 +0100
commit5c79330053c4b84cd8eadb06d54ca28edac4d893 (patch)
treeccec6f40ffe36dcffe960c4449eab6f26b8bb84f /thunarx
parentb73ec63839ecc39bd66afa3b9da7f74bbd8547ab (diff)
downloadthunar-5c79330053c4b84cd8eadb06d54ca28edac4d893.tar.gz
Use unsigned integer for idles and timers.
Could technically overflow.
Diffstat (limited to 'thunarx')
-rw-r--r--thunarx/thunarx-provider-factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thunarx/thunarx-provider-factory.c b/thunarx/thunarx-provider-factory.c
index 1b5d2a3e..6d141033 100644
--- a/thunarx/thunarx-provider-factory.c
+++ b/thunarx/thunarx-provider-factory.c
@@ -63,7 +63,7 @@ struct _ThunarxProviderFactory
ThunarxProviderInfo *infos; /* provider types and cached provider references */
gint n_infos; /* number of items in the infos array */
- gint timer_id; /* GSource timer to cleanup cached providers */
+ guint timer_id; /* GSource timer to cleanup cached providers */
};
@@ -101,7 +101,7 @@ thunarx_provider_factory_finalize (GObject *object)
gint n;
/* stop the "provider cache" cleanup timer */
- if (G_LIKELY (factory->timer_id > 0))
+ if (G_LIKELY (factory->timer_id != 0))
g_source_remove (factory->timer_id);
/* release provider infos */