projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
239537f
)
-fix cmp
author
Christian Grothoff
<christian@grothoff.org>
Fri, 22 May 2015 14:11:14 +0000
(14:11 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 22 May 2015 14:11:14 +0000
(14:11 +0000)
src/ats/test_ats_lib.c
patch
|
blob
|
history
diff --git
a/src/ats/test_ats_lib.c
b/src/ats/test_ats_lib.c
index d70580b9b47f2324696e1c9bcc07be9a491725e8..fb0a84531716eed0a5ac8ed29af63f4994a29057 100644
(file)
--- a/
src/ats/test_ats_lib.c
+++ b/
src/ats/test_ats_lib.c
@@
-755,9
+755,11
@@
interpreter (void *cls,
else
cmp = &update->details.update_address.properties;
if ( (NULL != aid) &&
- (0 == memcmp (cmp,
- &aid->properties,
- sizeof (struct GNUNET_ATS_Properties))) )
+ (cmp->delay.rel_value_us == aid->properties.delay.rel_value_us) &&
+ (cmp->delay.utilization_out == aid->properties.utilization_out) &&
+ (cmp->delay.utilization_in == aid->properties.utilization_in) &&
+ (cmp->delay.distance == aid->properties.distance) &&
+ (cmp->delay.scope == aid->properties.scope) )
{
off++;
break;