diff options
Diffstat (limited to 'src/cadet/gnunet-cadet-profiler.c')
-rw-r--r-- | src/cadet/gnunet-cadet-profiler.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cadet/gnunet-cadet-profiler.c b/src/cadet/gnunet-cadet-profiler.c index 920d8d830..2de17dc9e 100644 --- a/src/cadet/gnunet-cadet-profiler.c +++ b/src/cadet/gnunet-cadet-profiler.c | |||
@@ -912,19 +912,18 @@ select_random_peer (struct CadetPeer *peer) | |||
912 | static void | 912 | static void |
913 | start_test (void *cls) | 913 | start_test (void *cls) |
914 | { | 914 | { |
915 | enum GNUNET_CADET_ChannelOption flags; | ||
916 | unsigned long i; | 915 | unsigned long i; |
917 | 916 | ||
918 | test_task = NULL; | 917 | test_task = NULL; |
919 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Start profiler\n"); | 918 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Start profiler\n"); |
920 | 919 | ||
921 | flags = GNUNET_CADET_OPTION_DEFAULT; | 920 | |
922 | for (i = 0; i < peers_pinging; i++) | 921 | for (i = 0; i < peers_pinging; i++) |
923 | { | 922 | { |
924 | peers[i].dest = select_random_peer (&peers[i]); | 923 | peers[i].dest = select_random_peer (&peers[i]); |
925 | peers[i].ch = GNUNET_CADET_channel_create (peers[i].cadet, NULL, | 924 | peers[i].ch = GNUNET_CADET_channel_create (peers[i].cadet, NULL, |
926 | &peers[i].dest->id, | 925 | &peers[i].dest->id, |
927 | GC_u2h (1), flags); | 926 | GC_u2h (1)); |
928 | if (NULL == peers[i].ch) | 927 | if (NULL == peers[i].ch) |
929 | { | 928 | { |
930 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Channel %lu failed\n", i); | 929 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Channel %lu failed\n", i); |
@@ -969,7 +968,7 @@ warmup (void) | |||
969 | i, get_index (peer)); | 968 | i, get_index (peer)); |
970 | peers[i].warmup_ch = | 969 | peers[i].warmup_ch = |
971 | GNUNET_CADET_channel_create (peers[i].cadet, NULL, &peer->id, | 970 | GNUNET_CADET_channel_create (peers[i].cadet, NULL, &peer->id, |
972 | GC_u2h (1), GNUNET_CADET_OPTION_DEFAULT); | 971 | GC_u2h (1)); |
973 | if (NULL == peers[i].warmup_ch) | 972 | if (NULL == peers[i].warmup_ch) |
974 | { | 973 | { |
975 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Warmup %u failed\n", i); | 974 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Warmup %u failed\n", i); |