aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-06-10 12:08:20 +0000
committerBart Polot <bart@net.in.tum.de>2015-06-10 12:08:20 +0000
commit29795c865db8a793e1ad85acb71f621d397eed37 (patch)
treedcfca3176a4478705af42c3096eefe73f7cd6b09 /src
parent7cc01327be9a215ed817c462c3ee44c3db131398 (diff)
downloadgnunet-29795c865db8a793e1ad85acb71f621d397eed37.tar.gz
gnunet-29795c865db8a793e1ad85acb71f621d397eed37.zip
- compiler fixes
Diffstat (limited to 'src')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 969a307cc..4843c276b 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -1388,7 +1388,7 @@ connection_timeout (struct CadetConnection *c, int fwd)
1388{ 1388{
1389 struct CadetFlowControl *reverse_fc; 1389 struct CadetFlowControl *reverse_fc;
1390 1390
1391 reverse_fc = fwd ? c->bck_fc : c->fwd_fc; 1391 reverse_fc = fwd ? &c->bck_fc : &c->fwd_fc;
1392 1392
1393 LOG (GNUNET_ERROR_TYPE_INFO, 1393 LOG (GNUNET_ERROR_TYPE_INFO,
1394 "Connection %s %s timed out. Destroying.\n", 1394 "Connection %s %s timed out. Destroying.\n",
@@ -1405,10 +1405,10 @@ connection_timeout (struct CadetConnection *c, int fwd)
1405 /* If dest, salvage queued traffic. */ 1405 /* If dest, salvage queued traffic. */
1406 if (GCC_is_origin (c, !fwd)) 1406 if (GCC_is_origin (c, !fwd))
1407 { 1407 {
1408 struct GNUNET_PeerIdentity *next_hop; 1408 const struct GNUNET_PeerIdentity *next_hop;
1409 1409
1410 next_hop = fwd ? get_prev_hop (c) : get_next_hop (c); 1410 next_hop = GCP_get_id (fwd ? get_prev_hop (c) : get_next_hop (c));
1411 send_broken_unknown (&c->id, &my_full_id, NULL, GCP_get_id (next_hop)); 1411 send_broken_unknown (&c->id, &my_full_id, NULL, next_hop);
1412 if (0 < reverse_fc->queue_n) 1412 if (0 < reverse_fc->queue_n)
1413 resend_messages_and_destroy (c, !fwd); 1413 resend_messages_and_destroy (c, !fwd);
1414 return; 1414 return;
@@ -1430,7 +1430,6 @@ connection_fwd_timeout (void *cls,
1430 const struct GNUNET_SCHEDULER_TaskContext *tc) 1430 const struct GNUNET_SCHEDULER_TaskContext *tc)
1431{ 1431{
1432 struct CadetConnection *c = cls; 1432 struct CadetConnection *c = cls;
1433 struct CadetFlowControl *fc;
1434 1433
1435 c->fwd_maintenance_task = NULL; 1434 c->fwd_maintenance_task = NULL;
1436 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 1435 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))