gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r30109 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r30109 - gnunet/src/mesh
Date: Thu, 10 Oct 2013 17:37:02 +0200

Author: bartpolot
Date: 2013-10-10 17:37:02 +0200 (Thu, 10 Oct 2013)
New Revision: 30109

Modified:
   gnunet/src/mesh/gnunet-service-mesh_peer.c
   gnunet/src/mesh/gnunet-service-mesh_peer.h
Log:
- use const for peer IDs


Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2013-10-10 15:35:30 UTC (rev 
30108)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2013-10-10 15:37:02 UTC (rev 
30109)
@@ -1758,7 +1758,7 @@
  *
  * @return Full ID of peer.
  */
-struct GNUNET_PeerIdentity *
+const struct GNUNET_PeerIdentity *
 GMP_get_id (const struct MeshPeer *peer)
 {
   return GNUNET_PEER_resolve2 (peer->id);

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.h
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.h  2013-10-10 15:35:30 UTC (rev 
30108)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.h  2013-10-10 15:37:02 UTC (rev 
30109)
@@ -223,7 +223,7 @@
  * @return GNUNET_OK on success.
  */
 int
-GMP_remove_connection (struct MeshPeer *peer, struct MeshConnection *c);
+GMP_remove_connection (struct MeshPeer *peer, const struct MeshConnection *c);
 
 void
 GMP_start_search (struct MeshPeer *peer);
@@ -238,7 +238,7 @@
  *
  * @return Full ID of peer.
  */
-struct GNUNET_PeerIdentity *
+const struct GNUNET_PeerIdentity *
 GMP_get_id (const struct MeshPeer *peer);
 
 /**




reply via email to

[Prev in Thread] Current Thread [Next in Thread]