diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_paths.c b/src/cadet/gnunet-service-cadet_paths.c index 593617ff6..40f464e9b 100644 --- a/src/cadet/gnunet-service-cadet_paths.c +++ b/src/cadet/gnunet-service-cadet_paths.c | |||
@@ -477,7 +477,6 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
477 | struct CadetPeer *cpath[get_path_length + put_path_length]; | 477 | struct CadetPeer *cpath[get_path_length + put_path_length]; |
478 | struct CheckMatchContext cm_ctx; | 478 | struct CheckMatchContext cm_ctx; |
479 | struct CadetPeerPath *path; | 479 | struct CadetPeerPath *path; |
480 | int i; | ||
481 | unsigned int skip; | 480 | unsigned int skip; |
482 | unsigned int total_len; | 481 | unsigned int total_len; |
483 | 482 | ||
@@ -527,7 +526,7 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
527 | cm_ctx.cpath_length = total_len; | 526 | cm_ctx.cpath_length = total_len; |
528 | cm_ctx.cpath = cpath; | 527 | cm_ctx.cpath = cpath; |
529 | cm_ctx.match = NULL; | 528 | cm_ctx.match = NULL; |
530 | for (i=total_len-1;i>=0;i--) | 529 | for (int i=total_len-1;i>=0;i--) |
531 | { | 530 | { |
532 | GCP_iterate_paths_at (cpath[i], | 531 | GCP_iterate_paths_at (cpath[i], |
533 | (unsigned int) i, | 532 | (unsigned int) i, |
@@ -562,7 +561,7 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
562 | path->entries_length = total_len; | 561 | path->entries_length = total_len; |
563 | path->entries = GNUNET_new_array (path->entries_length, | 562 | path->entries = GNUNET_new_array (path->entries_length, |
564 | struct CadetPeerPathEntry *); | 563 | struct CadetPeerPathEntry *); |
565 | for (i=path->entries_length-1;i>=0;i--) | 564 | for (int i=path->entries_length-1;i>=0;i--) |
566 | { | 565 | { |
567 | struct CadetPeerPathEntry *entry = GNUNET_new (struct CadetPeerPathEntry); | 566 | struct CadetPeerPathEntry *entry = GNUNET_new (struct CadetPeerPathEntry); |
568 | 567 | ||
@@ -570,7 +569,7 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
570 | entry->peer = cpath[i]; | 569 | entry->peer = cpath[i]; |
571 | entry->path = path; | 570 | entry->path = path; |
572 | } | 571 | } |
573 | for (i=path->entries_length-1;i>=0;i--) | 572 | for (int i=path->entries_length-1;i>=0;i--) |
574 | { | 573 | { |
575 | struct CadetPeerPathEntry *entry = path->entries[i]; | 574 | struct CadetPeerPathEntry *entry = path->entries[i]; |
576 | 575 | ||