aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
commitcddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch)
treeb704e00a3af618b2cd174a7f89514eaebd82a1cf /src/ats/ats_api.c
parentbb4fc4f4007988874f910d4de5492f9629301641 (diff)
downloadgnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.tar.gz
gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.zip
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'src/ats/ats_api.c')
-rw-r--r--src/ats/ats_api.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ats/ats_api.c b/src/ats/ats_api.c
index 4f791050d..42c2f99a4 100644
--- a/src/ats/ats_api.c
+++ b/src/ats/ats_api.c
@@ -165,7 +165,7 @@ struct GNUNET_ATS_Handle
165 * 165 *
166 * @param cls pointer to counter 166 * @param cls pointer to counter
167 * @param key identity of the peer associated with the records 167 * @param key identity of the peer associated with the records
168 * @param value a 'struct AllocationRecord' 168 * @param value a 'struct AllocationRecord'
169 * @return GNUNET_YES (continue iteration) 169 * @return GNUNET_YES (continue iteration)
170 */ 170 */
171static int 171static int
@@ -202,7 +202,7 @@ struct SetBandwidthContext
202 * 202 *
203 * @param cls 'struct SetBandwidthContext' 203 * @param cls 'struct SetBandwidthContext'
204 * @param key identity of the peer associated with the records 204 * @param key identity of the peer associated with the records
205 * @param value a 'struct AllocationRecord' 205 * @param value a 'struct AllocationRecord'
206 * @return GNUNET_YES (continue iteration) 206 * @return GNUNET_YES (continue iteration)
207 */ 207 */
208static int 208static int
@@ -285,8 +285,7 @@ suggest_address (void *cls, const GNUNET_HashCode * key, void *value)
285 285
286 /* trivial strategy: pick first available address... */ 286 /* trivial strategy: pick first available address... */
287 asc->cb (asc->cb_cls, &asc->target, ar->plugin_name, ar->plugin_addr, 287 asc->cb (asc->cb_cls, &asc->target, ar->plugin_name, ar->plugin_addr,
288 ar->plugin_addr_len, 288 ar->plugin_addr_len, ar->session,
289 ar->session,
290 GNUNET_BANDWIDTH_value_init (asc->atc->total_bps / 32), ar->ats, 289 GNUNET_BANDWIDTH_value_init (asc->atc->total_bps / 32), ar->ats,
291 ar->ats_count); 290 ar->ats_count);
292 asc->cb = NULL; 291 asc->cb = NULL;
@@ -437,8 +436,8 @@ struct UpdateSessionContext
437 * 436 *
438 * @param cls a new 'struct AllocationRecord' 437 * @param cls a new 'struct AllocationRecord'
439 * @param key identity of the peer associated with the records 438 * @param key identity of the peer associated with the records
440 * @param value the old 'struct AllocationRecord' 439 * @param value the old 'struct AllocationRecord'
441 * @return GNUNET_YES if the records do not match, 440 * @return GNUNET_YES if the records do not match,
442 * GNUNET_NO if the record do match and 'old' was updated 441 * GNUNET_NO if the record do match and 'old' was updated
443 */ 442 */
444static int 443static int
@@ -682,8 +681,7 @@ notify_valid (void *cls, const GNUNET_HashCode * key, void *value)
682 struct GNUNET_ATS_SuggestionContext *asc = value; 681 struct GNUNET_ATS_SuggestionContext *asc = value;
683 682
684 asc->cb (asc->cb_cls, &asc->target, ar->plugin_name, ar->plugin_addr, 683 asc->cb (asc->cb_cls, &asc->target, ar->plugin_name, ar->plugin_addr,
685 ar->plugin_addr_len, 684 ar->plugin_addr_len, ar->session,
686 ar->session,
687 GNUNET_BANDWIDTH_value_init (asc->atc->total_bps / 32), ar->ats, 685 GNUNET_BANDWIDTH_value_init (asc->atc->total_bps / 32), ar->ats,
688 ar->ats_count); 686 ar->ats_count);
689 GNUNET_ATS_suggest_address_cancel (asc); 687 GNUNET_ATS_suggest_address_cancel (asc);