use unsigned int
authorChristian Grothoff <christian@grothoff.org>
Tue, 30 Aug 2011 11:12:50 +0000 (11:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 30 Aug 2011 11:12:50 +0000 (11:12 +0000)
src/mesh/mesh_api_new.c

index 5ec7a4875e0bcc3486a105e90e432b6281fb8c2a..74357e44abfb94aebc09dcac72a693aed794e28a 100644 (file)
@@ -197,7 +197,7 @@ struct GNUNET_MESH_Tunnel
     /**
      * Number of peer added to the tunnel
      */
-  uint32_t npeers;
+  unsigned int npeers;
 };
 
 struct GNUNET_MESH_TransmitHandle
@@ -726,8 +726,8 @@ GNUNET_MESH_peer_request_connect_add (struct GNUNET_MESH_Tunnel *tunnel,
 {
   struct GNUNET_MESH_PeerControl *msg;
   GNUNET_PEER_Id peer_id;
-  int i;
-
+  unsigned int i;
+  
   peer_id = GNUNET_PEER_intern (peer);
   for (i = 0; i < tunnel->npeers; i++)
   {
@@ -769,7 +769,7 @@ GNUNET_MESH_peer_request_connect_del (struct GNUNET_MESH_Tunnel *tunnel,
 {
   struct GNUNET_MESH_PeerControl *msg;
   GNUNET_PEER_Id peer_id;
-  int i;
+  unsigned int i;
 
   peer_id = GNUNET_PEER_search (peer);
   if (0 == peer_id)