diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-05 19:48:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-05 19:48:15 +0000 |
commit | 21264a59434a5b18b4f5e85e735a2d3ec5c3c6c6 (patch) | |
tree | db7c1187ddbba17641e0c0fcd631331803d19983 /src/ats/gnunet-service-ats_plugins.c | |
parent | 88031e0e8188e96d7ae4ce3659e6ed0d90a64f26 (diff) | |
download | gnunet-21264a59434a5b18b4f5e85e735a2d3ec5c3c6c6.tar.gz gnunet-21264a59434a5b18b4f5e85e735a2d3ec5c3c6c6.zip |
cleaning up gnunet-service-ats_normalization.c
Diffstat (limited to 'src/ats/gnunet-service-ats_plugins.c')
-rw-r--r-- | src/ats/gnunet-service-ats_plugins.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats_plugins.c b/src/ats/gnunet-service-ats_plugins.c index 1e234b56d..fed3c8496 100644 --- a/src/ats/gnunet-service-ats_plugins.c +++ b/src/ats/gnunet-service-ats_plugins.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "gnunet_ats_plugin.h" | 32 | #include "gnunet_ats_plugin.h" |
33 | #include "gnunet-service-ats_addresses.h" | 33 | #include "gnunet-service-ats_addresses.h" |
34 | #include "gnunet-service-ats_performance.h" | 34 | #include "gnunet-service-ats_performance.h" |
35 | #include "gnunet-service-ats_preferences.h" | ||
35 | #include "gnunet-service-ats_plugins.h" | 36 | #include "gnunet-service-ats_plugins.h" |
36 | #include "gnunet-service-ats_scheduling.h" | 37 | #include "gnunet-service-ats_scheduling.h" |
37 | #include "gnunet-service-ats_normalization.h" | 38 | #include "gnunet-service-ats_normalization.h" |
@@ -207,7 +208,7 @@ solver_info_cb (void *cls, | |||
207 | * @param address the address with changes | 208 | * @param address the address with changes |
208 | */ | 209 | */ |
209 | static void | 210 | static void |
210 | bandwidth_changed_cb (void *cls, | 211 | bandwidth_changed_cb (void *cls, |
211 | struct ATS_Address *address) | 212 | struct ATS_Address *address) |
212 | { | 213 | { |
213 | uint32_t diff_out; | 214 | uint32_t diff_out; |
@@ -222,7 +223,7 @@ bandwidth_changed_cb (void *cls, | |||
222 | address->plugin, | 223 | address->plugin, |
223 | address->addr, | 224 | address->addr, |
224 | address->addr_len, | 225 | address->addr_len, |
225 | address->active, | 226 | address->active, |
226 | address->atsi, | 227 | address->atsi, |
227 | address->atsi_count, | 228 | address->atsi_count, |
228 | GNUNET_BANDWIDTH_value_init (address->assigned_bw_out), | 229 | GNUNET_BANDWIDTH_value_init (address->assigned_bw_out), |
@@ -601,8 +602,8 @@ GAS_plugin_preference_feedback (void *application, | |||
601 | { | 602 | { |
602 | env.sf.s_feedback (solver, | 603 | env.sf.s_feedback (solver, |
603 | application, | 604 | application, |
604 | peer, | 605 | peer, |
605 | scope, | 606 | scope, |
606 | kind, | 607 | kind, |
607 | score_abs); | 608 | score_abs); |
608 | } | 609 | } |
@@ -635,9 +636,9 @@ GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid) | |||
635 | GNUNET_i2s (pid)); | 636 | GNUNET_i2s (pid)); |
636 | return; | 637 | return; |
637 | } | 638 | } |
638 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | 639 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, |
639 | "Suggesting address %p for peer `%s'\n", | 640 | "Suggesting address %p for peer `%s'\n", |
640 | aa, | 641 | aa, |
641 | GNUNET_i2s (pid)); | 642 | GNUNET_i2s (pid)); |
642 | 643 | ||
643 | GAS_scheduling_transmit_address_suggestion (pid, | 644 | GAS_scheduling_transmit_address_suggestion (pid, |