Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] More const for pointer and reference local variables and parameters.
[simgrid.git] / examples / deprecated / msg / dht-pastry / dht-pastry.c
index 274e2ba..c232a8e 100644 (file)
@@ -134,7 +134,8 @@ static int closest_in_namespace_set(const_node_t node, int dest)
 }
 
 /* Find the next node to forward a message to */
-static int routing_next(node_t node, int dest) {
+static int routing_next(const_node_t node, int dest)
+{
   int closest = closest_in_namespace_set(node, dest);
   if (closest!=-1)
     return closest;