Author: grothoff
Date: 2007-11-24 05:41:57 -0700 (Sat, 24 Nov 2007)
New Revision: 5749
Modified:
GNUnet/src/server/connection.c
Log:
fixing mantis 1293
Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c 2007-11-24 11:35:22 UTC (rev 5748)
+++ GNUnet/src/server/connection.c 2007-11-24 12:41:57 UTC (rev 5749)
@@ -227,7 +227,7 @@
#define EXIT() ;
#endif
-#if DEBUG_COLLECT_PRIO == YES
+#if DEBUG_COLLECT_PRIO
FILE *prioFile;
#endif
@@ -1161,7 +1161,7 @@
(*priority) = approximateKnapsack (be,
be->session.mtu -
sizeof (P2P_PACKET_HEADER));
-#if DEBUG_COLLECT_PRIO == YES
+#if DEBUG_COLLECT_PRIO
FPRINTF (prioFile, "%llu 0 %u\n", GNUNET_get_time (),
*priority);
#endif
@@ -1171,7 +1171,7 @@
(*priority) = solveKnapsack (be,
be->session.mtu -
sizeof (P2P_PACKET_HEADER));
-#if DEBUG_COLLECT_PRIO == YES
+#if DEBUG_COLLECT_PRIO
FPRINTF (prioFile, "%llu 1 %u\n", GNUNET_get_time (),
*priority);
#endif
@@ -1182,7 +1182,7 @@
(*priority) = solveKnapsack (be,
be->session.mtu -
sizeof (P2P_PACKET_HEADER));
-#if DEBUG_COLLECT_PRIO == YES
+#if DEBUG_COLLECT_PRIO
FPRINTF (prioFile, "%llu 2 %u\n", GNUNET_get_time (), *priority);
#endif
}
@@ -3640,7 +3640,7 @@
topology = NULL;
releaseService (stats);
stats = NULL;
-#if DEBUG_COLLECT_PRIO == YES
+#if DEBUG_COLLECT_PRIO
if (prioFile != NULL)
{
fclose (prioFile);
_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn