From bdce0f5ebf081bb80a36062674fbaac5f45eb7e0 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 10 Oct 2013 15:37:02 +0000 Subject: [PATCH] - use const for peer IDs --- src/mesh/gnunet-service-mesh_peer.c | 2 +- src/mesh/gnunet-service-mesh_peer.h | 4 ++-- 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, * * @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); 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); * @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); /** -- 2.25.1