[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35921 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35921 - gnunet/src/cadet |
Date: |
Wed, 10 Jun 2015 14:08:21 +0200 |
Author: bartpolot
Date: 2015-06-10 14:08:20 +0200 (Wed, 10 Jun 2015)
New Revision: 35921
Modified:
gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- compiler fixes
Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c 2015-06-10 12:08:20 UTC
(rev 35920)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c 2015-06-10 12:08:20 UTC
(rev 35921)
@@ -1388,7 +1388,7 @@
{
struct CadetFlowControl *reverse_fc;
- reverse_fc = fwd ? c->bck_fc : c->fwd_fc;
+ reverse_fc = fwd ? &c->bck_fc : &c->fwd_fc;
LOG (GNUNET_ERROR_TYPE_INFO,
"Connection %s %s timed out. Destroying.\n",
@@ -1405,10 +1405,10 @@
/* If dest, salvage queued traffic. */
if (GCC_is_origin (c, !fwd))
{
- struct GNUNET_PeerIdentity *next_hop;
+ const struct GNUNET_PeerIdentity *next_hop;
- next_hop = fwd ? get_prev_hop (c) : get_next_hop (c);
- send_broken_unknown (&c->id, &my_full_id, NULL, GCP_get_id (next_hop));
+ next_hop = GCP_get_id (fwd ? get_prev_hop (c) : get_next_hop (c));
+ send_broken_unknown (&c->id, &my_full_id, NULL, next_hop);
if (0 < reverse_fc->queue_n)
resend_messages_and_destroy (c, !fwd);
return;
@@ -1430,7 +1430,6 @@
const struct GNUNET_SCHEDULER_TaskContext *tc)
{
struct CadetConnection *c = cls;
- struct CadetFlowControl *fc;
c->fwd_maintenance_task = NULL;
if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35921 - gnunet/src/cadet,
gnunet <=