]> AND Public Git Repository - simgrid.git/blobdiff - examples/msg/dht-kademlia/answer.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update all our XML files + next XML version will be 4.1, not 5
[simgrid.git] / examples / msg / dht-kademlia / answer.c
index ce1d5866046e47fc89c58c97c4afe51f2423d65a..1cd48a0cf96c65dd8658e450cabf4e5f2c00312b 100644 (file)
@@ -144,7 +144,7 @@ unsigned int answer_contains(answer_t answer, unsigned int id)
   */
 unsigned int answer_destination_found(answer_t answer)
 {
-  if (xbt_dynar_length(answer->nodes) < 1) {
+  if (xbt_dynar_is_empty(answer->nodes)) {
     return 0;
   }
   node_contact_t contact_tail = xbt_dynar_get_as(answer->nodes, 0, node_contact_t);