[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30761 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30761 - gnunet/src/util |
Date: |
Sun, 17 Nov 2013 19:31:49 +0100 |
Author: grothoff
Date: 2013-11-17 19:31:49 +0100 (Sun, 17 Nov 2013)
New Revision: 30761
Modified:
gnunet/src/util/test_mq_client.c
Log:
-fix test
Modified: gnunet/src/util/test_mq_client.c
===================================================================
--- gnunet/src/util/test_mq_client.c 2013-11-17 15:52:01 UTC (rev 30760)
+++ gnunet/src/util/test_mq_client.c 2013-11-17 18:31:49 UTC (rev 30761)
@@ -48,7 +48,7 @@
const struct GNUNET_MessageHeader *message)
{
received++;
- if ((received == 2) && (GNUNET_YES == notify))
+ if (received == 2)
{
GNUNET_SERVER_receive_done (argclient, GNUNET_NO);
return;
@@ -93,14 +93,18 @@
{NULL, NULL, 0, 0}
};
-void send_cb (void *cls)
+
+static void
+send_cb (void *cls)
{
/* the notify should only be called once */
GNUNET_assert (GNUNET_NO == notify);
notify = GNUNET_YES;
}
-void test_mq (struct GNUNET_CLIENT_Connection *client)
+
+static void
+test_mq (struct GNUNET_CLIENT_Connection *client)
{
struct GNUNET_MQ_Handle *mq;
struct GNUNET_MQ_Envelope *mqm;
@@ -164,6 +168,7 @@
NULL);
ok = 1;
GNUNET_SCHEDULER_run (&task, NULL);
+ GNUNET_assert (GNUNET_YES == notify);
return ok;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30761 - gnunet/src/util,
gnunet <=