X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7749be177cbd7d433ec389a155efff301969c6ee..ee9287a4774c1756480fe1bcc6d5113f6d3d4988:/examples/deprecated/msg/dht-kademlia/dht-kademlia.c diff --git a/examples/deprecated/msg/dht-kademlia/dht-kademlia.c b/examples/deprecated/msg/dht-kademlia/dht-kademlia.c index f33ba10088..9129794454 100644 --- a/examples/deprecated/msg/dht-kademlia/dht-kademlia.c +++ b/examples/deprecated/msg/dht-kademlia/dht-kademlia.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2012-2020. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -301,7 +301,7 @@ void send_find_node(node_t node, unsigned int id, unsigned int destination) * Sends to the best "KADEMLIA_ALPHA" nodes in the "node_list" array a "FIND_NODE" request, to ask them for their best * nodes */ -unsigned int send_find_node_to_best(node_t node, answer_t node_list) +unsigned int send_find_node_to_best(node_t node, const_answer_t node_list) { unsigned int i = 0; unsigned int j = 0; @@ -322,7 +322,7 @@ unsigned int send_find_node_to_best(node_t node, answer_t node_list) /** @brief Handles an incoming received task */ void handle_task(node_t node, msg_task_t task) { - task_data_t data = MSG_task_get_data(task); + const_task_data_t data = MSG_task_get_data(task); xbt_assert((data != NULL), "Received NULL data"); //Adding/updating the guy to our routing table node_routing_table_update(node, data->sender_id); @@ -340,7 +340,7 @@ void handle_task(node_t node, msg_task_t task) } /** @brief Handles the answer to an incoming "find_node" task */ -void handle_find_node(node_t node, task_data_t data) +void handle_find_node(node_t node, const_task_data_t data) { XBT_VERB("Received a FIND_NODE from %s (%s), he's trying to find %08x", data->answer_to, data->issuer_host_name, data->destination_id);