aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/test_cadet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/test_cadet.c')
-rw-r--r--src/cadet/test_cadet.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c
index 72c18cf9c..e87e173be 100644
--- a/src/cadet/test_cadet.c
+++ b/src/cadet/test_cadet.c
@@ -532,7 +532,6 @@ reconnect_op (void *cls)
532 }; 532 };
533 long l = (long) cls; 533 long l = (long) cls;
534 struct CadetTestChannelWrapper *ch; 534 struct CadetTestChannelWrapper *ch;
535 enum GNUNET_CADET_ChannelOption flags;
536 535
537 reconnect_task = NULL; 536 reconnect_task = NULL;
538 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 537 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -543,13 +542,11 @@ reconnect_op (void *cls)
543 GNUNET_CADET_channel_destroy (outgoing_ch); 542 GNUNET_CADET_channel_destroy (outgoing_ch);
544 outgoing_ch = NULL; 543 outgoing_ch = NULL;
545 } 544 }
546 flags = GNUNET_CADET_OPTION_DEFAULT;
547 ch = GNUNET_new (struct CadetTestChannelWrapper); 545 ch = GNUNET_new (struct CadetTestChannelWrapper);
548 outgoing_ch = GNUNET_CADET_channel_create (h1, 546 outgoing_ch = GNUNET_CADET_channel_create (h1,
549 ch, 547 ch,
550 p_id[1], 548 p_id[1],
551 &port, 549 &port,
552 flags,
553 NULL, 550 NULL,
554 &disconnect_handler, 551 &disconnect_handler,
555 handlers); 552 handlers);
@@ -998,7 +995,6 @@ start_test (void *cls)
998 GNUNET_MQ_handler_end () 995 GNUNET_MQ_handler_end ()
999 }; 996 };
1000 struct CadetTestChannelWrapper *ch; 997 struct CadetTestChannelWrapper *ch;
1001 enum GNUNET_CADET_ChannelOption flags;
1002 998
1003 test_task = NULL; 999 test_task = NULL;
1004 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "start_test: %s\n", test_name); 1000 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "start_test: %s\n", test_name);
@@ -1008,11 +1004,9 @@ start_test (void *cls)
1008 disconnect_task = NULL; 1004 disconnect_task = NULL;
1009 } 1005 }
1010 1006
1011 flags = GNUNET_CADET_OPTION_DEFAULT;
1012 if (SPEED_REL == test) 1007 if (SPEED_REL == test)
1013 { 1008 {
1014 test = SPEED; 1009 test = SPEED;
1015 flags |= GNUNET_CADET_OPTION_RELIABLE;
1016 } 1010 }
1017 1011
1018 ch = GNUNET_new (struct CadetTestChannelWrapper); 1012 ch = GNUNET_new (struct CadetTestChannelWrapper);
@@ -1020,7 +1014,6 @@ start_test (void *cls)
1020 ch, 1014 ch,
1021 p_id[1], 1015 p_id[1],
1022 &port, 1016 &port,
1023 flags,
1024 NULL, 1017 NULL,
1025 &disconnect_handler, 1018 &disconnect_handler,
1026 handlers); 1019 handlers);