aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_normalization.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-07 12:46:37 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-07 12:46:37 +0000
commit6e54571bd00f7ea045dabcd5fc9fc3080665f5fc (patch)
treee8e204155e5fd9fc8bf6e7620331a9fc484ce78a /src/ats/gnunet-service-ats_normalization.c
parent577ad3b798f0cd62c2e9ab92fdc58cfe75a3fcdc (diff)
downloadgnunet-6e54571bd00f7ea045dabcd5fc9fc3080665f5fc.tar.gz
gnunet-6e54571bd00f7ea045dabcd5fc9fc3080665f5fc.zip
simplify logic
Diffstat (limited to 'src/ats/gnunet-service-ats_normalization.c')
-rw-r--r--src/ats/gnunet-service-ats_normalization.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c
index 244813108..8eaedc92d 100644
--- a/src/ats/gnunet-service-ats_normalization.c
+++ b/src/ats/gnunet-service-ats_normalization.c
@@ -24,7 +24,7 @@
24 * @author Matthias Wachs 24 * @author Matthias Wachs
25 * @author Christian Grothoff 25 * @author Christian Grothoff
26 * 26 *
27 * FIXME: rename to 'properties'!? 27 * FIXME: rename to 'properties'!? merge with addresses!?
28 */ 28 */
29#include "platform.h" 29#include "platform.h"
30#include "gnunet_ats_service.h" 30#include "gnunet_ats_service.h"
@@ -360,7 +360,7 @@ GAS_normalization_normalize_property (struct ATS_Address *address,
360 "Updating %u elements for peer `%s'\n", 360 "Updating %u elements for peer `%s'\n",
361 atsi_count, 361 atsi_count,
362 GNUNET_i2s (&address->peer)); 362 GNUNET_i2s (&address->peer));
363 363 GAS_plugin_solver_lock ();
364 for (c1 = 0; c1 < atsi_count; c1++) 364 for (c1 = 0; c1 < atsi_count; c1++)
365 { 365 {
366 current_type = ntohl (atsi[c1].type); 366 current_type = ntohl (atsi[c1].type);
@@ -391,6 +391,7 @@ GAS_normalization_normalize_property (struct ATS_Address *address,
391 address, 391 address,
392 current_val); 392 current_val);
393 } 393 }
394 GAS_plugin_solver_unlock ();
394} 395}
395 396
396 397