[glib: 2/11] Fix signedness warning in gio/gnetworkmonitornetlink.c:remove_network()




commit 8236b66a5dbbf6afd0a75f40cd90d7ae9a392970
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date:   Tue Nov 17 11:38:12 2020 +0100

    Fix signedness warning in gio/gnetworkmonitornetlink.c:remove_network()
    
    gio/gnetworkmonitornetlink.c: In function ‘remove_network’:
    gio/gnetworkmonitornetlink.c:272:21: error: comparison of integer expressions of different signedness: 
‘int’ and ‘guint’ {aka ‘unsigned int’}
      272 |       for (i = 0; i < nl->priv->dump_networks->len; i++)
          |                     ^

 gio/gnetworkmonitornetlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gnetworkmonitornetlink.c b/gio/gnetworkmonitornetlink.c
index 20db55188..53eab3364 100644
--- a/gio/gnetworkmonitornetlink.c
+++ b/gio/gnetworkmonitornetlink.c
@@ -267,7 +267,7 @@ remove_network (GNetworkMonitorNetlink *nl,
   if (nl->priv->dump_networks)
     {
       GInetAddressMask **dump_networks = (GInetAddressMask **)nl->priv->dump_networks->pdata;
-      int i;
+      guint i;
 
       for (i = 0; i < nl->priv->dump_networks->len; i++)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]