- use const for peer IDs
authorBart Polot <bart@net.in.tum.de>
Thu, 10 Oct 2013 15:37:02 +0000 (15:37 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 10 Oct 2013 15:37:02 +0000 (15:37 +0000)
src/mesh/gnunet-service-mesh_peer.c
src/mesh/gnunet-service-mesh_peer.h

index 21ddf6592380607e971c960bc5a31f00be6446dd..a0dede486fcb5eb3cc569f84220a210d51381703 100644 (file)
@@ -1758,7 +1758,7 @@ GMP_remove_connection (struct MeshPeer *peer,
  *
  * @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);
index 4cd108b3095d9838dbb16088df089d36d55fdf68..84bf4eb2acb5586dc84e69c65d6e98578392b704 100644 (file)
@@ -223,7 +223,7 @@ GMP_add_path_to_all (struct MeshPeerPath *p, int confirmed);
  * @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 @@ GMP_stop_search (struct MeshPeer *peer);
  *
  * @return Full ID of peer.
  */
-struct GNUNET_PeerIdentity *
+const struct GNUNET_PeerIdentity *
 GMP_get_id (const struct MeshPeer *peer);
 
 /**