[glib] registrybackend: avoid signed/unsigned comparison warnings
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] registrybackend: avoid signed/unsigned comparison warnings
- Date: Mon, 1 Feb 2016 13:26:15 +0000 (UTC)
commit 169cfb250f2571624c57d074b829ca4005509ee6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Feb 1 14:25:05 2016 +0100
registrybackend: avoid signed/unsigned comparison warnings
gio/gregistrysettingsbackend.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gio/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c
index 62fe80a..abe7ed0 100644
--- a/gio/gregistrysettingsbackend.c
+++ b/gio/gregistrysettingsbackend.c
@@ -1145,7 +1145,7 @@ g_registry_backend_get_permission (GSettingsBackend *backend,
static void
_free_watch (WatchThreadState *self,
- gint index,
+ guint index,
GNode *cache_node);
static void
@@ -1168,7 +1168,7 @@ registry_cache_destroy_tree (GNode *node,
if (item->subscription_count > 0)
{
- gint i;
+ guint i;
/* There must be some watches active if this node is a watch point */
g_warn_if_fail (self->cache_nodes->len > 1);
@@ -1381,7 +1381,7 @@ typedef struct
static gboolean
watch_handler (RegistryEvent *event)
{
- gint i;
+ guint i;
trace ("Watch handler: got event in %s, items %i.\n", event->prefix, event->items->len);
@@ -1403,7 +1403,7 @@ watch_handler (RegistryEvent *event)
static void
_free_watch (WatchThreadState *self,
- gint index,
+ guint index,
GNode *cache_node)
{
HKEY hpath;
@@ -1486,7 +1486,7 @@ watch_thread_handle_message (WatchThreadState *self)
{
GNode *cache_node;
RegistryCacheItem *cache_item;
- gint i;
+ guint i;
for (i = 1; i < self->prefixes->len; i++)
{
@@ -1532,7 +1532,7 @@ watch_thread_handle_message (WatchThreadState *self)
case WATCH_THREAD_STOP:
{
- gint i;
+ guint i;
/* Free any remaining cache and watch handles */
for (i = 1; i < self->events->len; i++)
@@ -2008,3 +2008,4 @@ g_registry_backend_init (GRegistryBackend *self)
self->watch = NULL;
}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]