From bcc10bd6c81aeeac68019bdc2b557b81fa31d369 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 10 Oct 2013 17:59:17 +0000 Subject: - use proper const qualifier --- src/mesh/mesh_path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesh/mesh_path.c') 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) * @param path The path to duplicate. */ struct MeshPeerPath * -path_duplicate (struct MeshPeerPath *path) +path_duplicate (const struct MeshPeerPath *path) { struct MeshPeerPath *aux; unsigned int i; aux = path_new (path->length); memcpy (aux->peers, path->peers, path->length * sizeof (GNUNET_PEER_Id)); - for (i = 0; i < path->length; i++) - GNUNET_PEER_change_rc (path->peers[i], 1); + for (i = 0; i < aux->length; i++) + GNUNET_PEER_change_rc (aux->peers[i], 1); return aux; } -- cgit v1.2.3