[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23618 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23618 - gnunet/src/mesh |
Date: |
Tue, 4 Sep 2012 15:02:48 +0200 |
Author: bartpolot
Date: 2012-09-04 15:02:48 +0200 (Tue, 04 Sep 2012)
New Revision: 23618
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
- make sure -1LL is consistently used everywhere, document
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-09-04 12:45:48 UTC (rev
23617)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-09-04 13:02:48 UTC (rev
23618)
@@ -3550,7 +3550,7 @@
*
* @param t Tunnel.
*
- * @return Maximum PID allowed (uint32 MAX), -1 if node has no children.
+ * @return Maximum PID allowed (uint32 MAX), -1LL if node has no children.
*/
static int64_t
tunnel_get_children_fwd_ack (struct MeshTunnel *t)
@@ -3607,7 +3607,7 @@
* @param t Tunnel on which to look.
*
* @return Corresponding ACK value (max uint32_t).
- * If no clients are suscribed, -1.
+ * If no clients are suscribed, -1LL.
*/
static int64_t
tunnel_get_clients_fwd_ack (struct MeshTunnel *t)
@@ -3622,9 +3622,9 @@
return -1LL;
}
- for (ack = -1, i = 0; i < t->nclients; i++)
+ for (ack = -1LL, i = 0; i < t->nclients; i++)
{
- if (-1 == ack ||
+ if (-1LL == ack ||
(GNUNET_YES == t->speed_min &&
GNUNET_YES == GMC_is_pid_bigger (ack, t->clients_fc[i].fwd_ack)) ||
(GNUNET_NO == t->speed_min &&
@@ -3666,7 +3666,7 @@
if (-1LL == child_ack)
{
// Node has no children, child_ack AND core buffer are irrelevant.
- GNUNET_break (-1 != client_ack); // No children AND no clients? Not good!
+ GNUNET_break (-1LL != client_ack); // No children AND no clients? Not good!
return (uint32_t) client_ack;
}
if (-1LL == client_ack)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23618 - gnunet/src/mesh,
gnunet <=