diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-22 14:11:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-22 14:11:14 +0000 |
commit | b64c5600f44e5f2358d9c0c111c3d1a11166bec4 (patch) | |
tree | d235a5e53bb0c03129827321806badcb7d232606 | |
parent | 239537fefb4fb6832a65d051fb887c8c0ac59ffa (diff) | |
download | gnunet-b64c5600f44e5f2358d9c0c111c3d1a11166bec4.tar.gz gnunet-b64c5600f44e5f2358d9c0c111c3d1a11166bec4.zip |
-fix cmp
-rw-r--r-- | src/ats/test_ats_lib.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ats/test_ats_lib.c b/src/ats/test_ats_lib.c index d70580b9b..fb0a84531 100644 --- a/src/ats/test_ats_lib.c +++ b/src/ats/test_ats_lib.c | |||
@@ -755,9 +755,11 @@ interpreter (void *cls, | |||
755 | else | 755 | else |
756 | cmp = &update->details.update_address.properties; | 756 | cmp = &update->details.update_address.properties; |
757 | if ( (NULL != aid) && | 757 | if ( (NULL != aid) && |
758 | (0 == memcmp (cmp, | 758 | (cmp->delay.rel_value_us == aid->properties.delay.rel_value_us) && |
759 | &aid->properties, | 759 | (cmp->delay.utilization_out == aid->properties.utilization_out) && |
760 | sizeof (struct GNUNET_ATS_Properties))) ) | 760 | (cmp->delay.utilization_in == aid->properties.utilization_in) && |
761 | (cmp->delay.distance == aid->properties.distance) && | ||
762 | (cmp->delay.scope == aid->properties.scope) ) | ||
761 | { | 763 | { |
762 | off++; | 764 | off++; |
763 | break; | 765 | break; |