aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-10 15:37:02 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-10 15:37:02 +0000
commitbdce0f5ebf081bb80a36062674fbaac5f45eb7e0 (patch)
tree7ccb8478b7e3bf083e3c3368b41268cf1651c266 /src/mesh
parent82fc48725fb6b1c508f1ea6b499c3722b62aef25 (diff)
downloadgnunet-bdce0f5ebf081bb80a36062674fbaac5f45eb7e0.tar.gz
gnunet-bdce0f5ebf081bb80a36062674fbaac5f45eb7e0.zip
- use const for peer IDs
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh_peer.c2
-rw-r--r--src/mesh/gnunet-service-mesh_peer.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c
index 21ddf6592..a0dede486 100644
--- a/src/mesh/gnunet-service-mesh_peer.c
+++ b/src/mesh/gnunet-service-mesh_peer.c
@@ -1758,7 +1758,7 @@ GMP_remove_connection (struct MeshPeer *peer,
1758 * 1758 *
1759 * @return Full ID of peer. 1759 * @return Full ID of peer.
1760 */ 1760 */
1761struct GNUNET_PeerIdentity * 1761const struct GNUNET_PeerIdentity *
1762GMP_get_id (const struct MeshPeer *peer) 1762GMP_get_id (const struct MeshPeer *peer)
1763{ 1763{
1764 return GNUNET_PEER_resolve2 (peer->id); 1764 return GNUNET_PEER_resolve2 (peer->id);
diff --git a/src/mesh/gnunet-service-mesh_peer.h b/src/mesh/gnunet-service-mesh_peer.h
index 4cd108b30..84bf4eb2a 100644
--- a/src/mesh/gnunet-service-mesh_peer.h
+++ b/src/mesh/gnunet-service-mesh_peer.h
@@ -223,7 +223,7 @@ GMP_add_path_to_all (struct MeshPeerPath *p, int confirmed);
223 * @return GNUNET_OK on success. 223 * @return GNUNET_OK on success.
224 */ 224 */
225int 225int
226GMP_remove_connection (struct MeshPeer *peer, struct MeshConnection *c); 226GMP_remove_connection (struct MeshPeer *peer, const struct MeshConnection *c);
227 227
228void 228void
229GMP_start_search (struct MeshPeer *peer); 229GMP_start_search (struct MeshPeer *peer);
@@ -238,7 +238,7 @@ GMP_stop_search (struct MeshPeer *peer);
238 * 238 *
239 * @return Full ID of peer. 239 * @return Full ID of peer.
240 */ 240 */
241struct GNUNET_PeerIdentity * 241const struct GNUNET_PeerIdentity *
242GMP_get_id (const struct MeshPeer *peer); 242GMP_get_id (const struct MeshPeer *peer);
243 243
244/** 244/**