diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-10 17:59:17 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-10 17:59:17 +0000 |
commit | bcc10bd6c81aeeac68019bdc2b557b81fa31d369 (patch) | |
tree | 43fcbb459e83530b0c254e23d93966de79d43689 /src/mesh/mesh_path.c | |
parent | 0866f018ec9465d261664c013e714d0e8a1a0092 (diff) | |
download | gnunet-bcc10bd6c81aeeac68019bdc2b557b81fa31d369.tar.gz gnunet-bcc10bd6c81aeeac68019bdc2b557b81fa31d369.zip |
- use proper const qualifier
Diffstat (limited to 'src/mesh/mesh_path.c')
-rw-r--r-- | src/mesh/mesh_path.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/mesh_path.c b/src/mesh/mesh_path.c index 1a3d40f9f..536fb0da6 100644 --- a/src/mesh/mesh_path.c +++ b/src/mesh/mesh_path.c | |||
@@ -76,15 +76,15 @@ path_invert (struct MeshPeerPath *path) | |||
76 | * @param path The path to duplicate. | 76 | * @param path The path to duplicate. |
77 | */ | 77 | */ |
78 | struct MeshPeerPath * | 78 | struct MeshPeerPath * |
79 | path_duplicate (struct MeshPeerPath *path) | 79 | path_duplicate (const struct MeshPeerPath *path) |
80 | { | 80 | { |
81 | struct MeshPeerPath *aux; | 81 | struct MeshPeerPath *aux; |
82 | unsigned int i; | 82 | unsigned int i; |
83 | 83 | ||
84 | aux = path_new (path->length); | 84 | aux = path_new (path->length); |
85 | memcpy (aux->peers, path->peers, path->length * sizeof (GNUNET_PEER_Id)); | 85 | memcpy (aux->peers, path->peers, path->length * sizeof (GNUNET_PEER_Id)); |
86 | for (i = 0; i < path->length; i++) | 86 | for (i = 0; i < aux->length; i++) |
87 | GNUNET_PEER_change_rc (path->peers[i], 1); | 87 | GNUNET_PEER_change_rc (aux->peers[i], 1); |
88 | return aux; | 88 | return aux; |
89 | } | 89 | } |
90 | 90 | ||