diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-10 15:37:02 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-10 15:37:02 +0000 |
commit | bdce0f5ebf081bb80a36062674fbaac5f45eb7e0 (patch) | |
tree | 7ccb8478b7e3bf083e3c3368b41268cf1651c266 /src/mesh | |
parent | 82fc48725fb6b1c508f1ea6b499c3722b62aef25 (diff) | |
download | gnunet-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.c | 2 | ||||
-rw-r--r-- | 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, | |||
1758 | * | 1758 | * |
1759 | * @return Full ID of peer. | 1759 | * @return Full ID of peer. |
1760 | */ | 1760 | */ |
1761 | struct GNUNET_PeerIdentity * | 1761 | const struct GNUNET_PeerIdentity * |
1762 | GMP_get_id (const struct MeshPeer *peer) | 1762 | GMP_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 | */ |
225 | int | 225 | int |
226 | GMP_remove_connection (struct MeshPeer *peer, struct MeshConnection *c); | 226 | GMP_remove_connection (struct MeshPeer *peer, const struct MeshConnection *c); |
227 | 227 | ||
228 | void | 228 | void |
229 | GMP_start_search (struct MeshPeer *peer); | 229 | GMP_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 | */ |
241 | struct GNUNET_PeerIdentity * | 241 | const struct GNUNET_PeerIdentity * |
242 | GMP_get_id (const struct MeshPeer *peer); | 242 | GMP_get_id (const struct MeshPeer *peer); |
243 | 243 | ||
244 | /** | 244 | /** |