[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13864 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13864 - gnunet/src/transport |
Date: |
Wed, 1 Dec 2010 20:17:19 +0100 |
Author: grothoff
Date: 2010-12-01 20:17:19 +0100 (Wed, 01 Dec 2010)
New Revision: 13864
Modified:
gnunet/src/transport/transport_api.c
Log:
indent
Modified: gnunet/src/transport/transport_api.c
===================================================================
--- gnunet/src/transport/transport_api.c 2010-12-01 19:08:57 UTC (rev
13863)
+++ gnunet/src/transport/transport_api.c 2010-12-01 19:17:19 UTC (rev
13864)
@@ -1139,7 +1139,11 @@
n->transmit_handle.notify = NULL;
}
*/
-
+ /* NATE: if the above is not needed, then clearly this assertion
+ should hold (I've checked the code and I'm pretty sure this is
+ true. -CG
+ FIXME: remove above comments once we've seen tests pass with the
assert... */
+ GNUNET_assert (n->transmit_handle.notify_delay_task ==
GNUNET_SCHEDULER_NO_TASK);
GNUNET_assert (n->transmit_handle.notify == NULL);
h = n->h;
#if DEBUG_TRANSPORT
@@ -1150,8 +1154,10 @@
GNUNET_break (n->is_connected == GNUNET_NO);
GNUNET_break (n->transmit_stage == TS_NEW);
- GNUNET_assert(GNUNET_YES ==
GNUNET_CONTAINER_multihashmap_remove(h->neighbours, &n->id.hashPubKey, n));
-
+ GNUNET_assert(GNUNET_YES ==
+ GNUNET_CONTAINER_multihashmap_remove(h->neighbours,
+ &n->id.hashPubKey,
+ n));
GNUNET_free (n);
}
@@ -1208,6 +1214,7 @@
void *value)
{
struct NeighbourList *n = value;
+
#if DEBUG_TRANSPORT_DISCONNECT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Disconnecting due to reconnect being called\n");
@@ -1218,6 +1225,7 @@
return GNUNET_YES;
}
+
/**
* Try again to connect to transport service.
*
@@ -1238,7 +1246,9 @@
return;
}
/* Forget about all neighbours that we used to be connected to */
- GNUNET_CONTAINER_multihashmap_iterate(h->neighbours, &forget_neighbours,
NULL);
+ GNUNET_CONTAINER_multihashmap_iterate(h->neighbours,
+ &forget_neighbours,
+ NULL);
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13864 - gnunet/src/transport,
gnunet <=