mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
registrybackend: avoid signed/unsigned comparison warnings
This commit is contained in:
@@ -1145,7 +1145,7 @@ g_registry_backend_get_permission (GSettingsBackend *backend,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
_free_watch (WatchThreadState *self,
|
_free_watch (WatchThreadState *self,
|
||||||
gint index,
|
guint index,
|
||||||
GNode *cache_node);
|
GNode *cache_node);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -1168,7 +1168,7 @@ registry_cache_destroy_tree (GNode *node,
|
|||||||
|
|
||||||
if (item->subscription_count > 0)
|
if (item->subscription_count > 0)
|
||||||
{
|
{
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
/* There must be some watches active if this node is a watch point */
|
/* There must be some watches active if this node is a watch point */
|
||||||
g_warn_if_fail (self->cache_nodes->len > 1);
|
g_warn_if_fail (self->cache_nodes->len > 1);
|
||||||
@@ -1381,7 +1381,7 @@ typedef struct
|
|||||||
static gboolean
|
static gboolean
|
||||||
watch_handler (RegistryEvent *event)
|
watch_handler (RegistryEvent *event)
|
||||||
{
|
{
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
trace ("Watch handler: got event in %s, items %i.\n", event->prefix, event->items->len);
|
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
|
static void
|
||||||
_free_watch (WatchThreadState *self,
|
_free_watch (WatchThreadState *self,
|
||||||
gint index,
|
guint index,
|
||||||
GNode *cache_node)
|
GNode *cache_node)
|
||||||
{
|
{
|
||||||
HKEY hpath;
|
HKEY hpath;
|
||||||
@@ -1486,7 +1486,7 @@ watch_thread_handle_message (WatchThreadState *self)
|
|||||||
{
|
{
|
||||||
GNode *cache_node;
|
GNode *cache_node;
|
||||||
RegistryCacheItem *cache_item;
|
RegistryCacheItem *cache_item;
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
for (i = 1; i < self->prefixes->len; i++)
|
for (i = 1; i < self->prefixes->len; i++)
|
||||||
{
|
{
|
||||||
@@ -1532,7 +1532,7 @@ watch_thread_handle_message (WatchThreadState *self)
|
|||||||
|
|
||||||
case WATCH_THREAD_STOP:
|
case WATCH_THREAD_STOP:
|
||||||
{
|
{
|
||||||
gint i;
|
guint i;
|
||||||
|
|
||||||
/* Free any remaining cache and watch handles */
|
/* Free any remaining cache and watch handles */
|
||||||
for (i = 1; i < self->events->len; i++)
|
for (i = 1; i < self->events->len; i++)
|
||||||
@@ -2008,3 +2008,4 @@ g_registry_backend_init (GRegistryBackend *self)
|
|||||||
|
|
||||||
self->watch = NULL;
|
self->watch = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user