diff options
author | Nick Schermer <nick@xfce.org> | 2012-11-04 10:23:05 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2012-11-04 10:39:48 +0100 |
commit | 5c79330053c4b84cd8eadb06d54ca28edac4d893 (patch) | |
tree | ccec6f40ffe36dcffe960c4449eab6f26b8bb84f /thunarx | |
parent | b73ec63839ecc39bd66afa3b9da7f74bbd8547ab (diff) | |
download | thunar-5c79330053c4b84cd8eadb06d54ca28edac4d893.tar.gz |
Use unsigned integer for idles and timers.
Could technically overflow.
Diffstat (limited to 'thunarx')
-rw-r--r-- | thunarx/thunarx-provider-factory.c | 4 |
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 */ |