From: Bart Polot Date: Thu, 10 Oct 2013 15:37:02 +0000 (+0000) Subject: - use const for peer IDs X-Git-Tag: initial-import-from-subversion-38251~6614 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bdce0f5ebf081bb80a36062674fbaac5f45eb7e0;p=oweals%2Fgnunet.git - use const for peer IDs --- 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); /**