gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29593 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r29593 - gnunet/src/ats
Date: Thu, 26 Sep 2013 11:49:37 +0200

Author: oehlmann
Date: 2013-09-26 11:49:37 +0200 (Thu, 26 Sep 2013)
New Revision: 29593

Modified:
   gnunet/src/ats/gnunet-service-ats-solver_ril.c
Log:
ats_ril: uncommented unused function

Modified: gnunet/src/ats/gnunet-service-ats-solver_ril.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats-solver_ril.c      2013-09-26 09:40:18 UTC 
(rev 29592)
+++ gnunet/src/ats/gnunet-service-ats-solver_ril.c      2013-09-26 09:49:37 UTC 
(rev 29593)
@@ -765,25 +765,25 @@
  * @param active_only whether only active agents should be counted
  * @return number of agents
  */
-static int
-ril_count_agents (struct GAS_RIL_Handle *solver, int active_only)
-{
-  int c;
-  struct RIL_Peer_Agent *cur;
+//static int
+//ril_count_agents (struct GAS_RIL_Handle *solver, int active_only)
+//{
+//  int c;
+//  struct RIL_Peer_Agent *cur;
+//
+//  c = 0;
+//  for (cur = solver->agents_head; NULL != cur; cur = cur->next)
+//  {
+//    if ((!active_only) || (active_only && cur->active))
+//    {
+//      c += 1;
+//    }
+//  }
+//  return c;
+//}
 
-  c = 0;
-  for (cur = solver->agents_head; NULL != cur; cur = cur->next)
-  {
-    if ((!active_only) || (active_only && cur->active))
-    {
-      c += 1;
-    }
-  }
-  return c;
-}
 
 
-
 /**
  * Returns the agent for a peer
  * @param s solver handle




reply via email to

[Prev in Thread] Current Thread [Next in Thread]