A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bug-- and a bit less brain overload
[simgrid.git]
/
examples
/
msg
/
dht-kademlia
/
answer.c
diff --git
a/examples/msg/dht-kademlia/answer.c
b/examples/msg/dht-kademlia/answer.c
index
ce1d586
..
1cd48a0
100644
(file)
--- a/
examples/msg/dht-kademlia/answer.c
+++ b/
examples/msg/dht-kademlia/answer.c
@@
-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);