[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34537 - in gnunet/src: cadet util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34537 - in gnunet/src: cadet util |
Date: |
Thu, 11 Dec 2014 23:27:24 +0100 |
Author: grothoff
Date: 2014-12-11 23:27:24 +0100 (Thu, 11 Dec 2014)
New Revision: 34537
Modified:
gnunet/src/cadet/cadet_api.c
gnunet/src/util/mq.c
Log:
-indentation, doxygen, style
Modified: gnunet/src/cadet/cadet_api.c
===================================================================
--- gnunet/src/cadet/cadet_api.c 2014-12-11 22:17:13 UTC (rev 34536)
+++ gnunet/src/cadet/cadet_api.c 2014-12-11 22:27:24 UTC (rev 34537)
@@ -345,8 +345,8 @@
*
* @param th Transmission handle.
*
- * @return GNUNET_YES if it is a payload packet,
- * GNUNET_NO if it is a cadet management packet.
+ * @return #GNUNET_YES if it is a payload packet,
+ * #GNUNET_NO if it is a cadet management packet.
*/
static int
th_is_payload (struct GNUNET_CADET_TransmitHandle *th)
@@ -1627,7 +1627,7 @@
msg.port = htonl (port);
msg.peer = *peer;
msg.opt = htonl (options);
- ch->allow_send = 0;
+ ch->allow_send = GNUNET_NO;
send_packet (h, &msg.header, ch);
return ch;
}
@@ -2074,7 +2074,8 @@
*/
static void
cadet_mq_send_impl (struct GNUNET_MQ_Handle *mq,
- const struct GNUNET_MessageHeader *msg, void *impl_state)
+ const struct GNUNET_MessageHeader *msg,
+ void *impl_state)
{
struct CadetMQState *state = impl_state;
@@ -2085,7 +2086,7 @@
GNUNET_NO,
GNUNET_TIME_UNIT_FOREVER_REL,
ntohs (msg->size),
- cadet_mq_ntr, mq);
+ &cadet_mq_ntr, mq);
}
Modified: gnunet/src/util/mq.c
===================================================================
--- gnunet/src/util/mq.c 2014-12-11 22:17:13 UTC (rev 34536)
+++ gnunet/src/util/mq.c 2014-12-11 22:27:24 UTC (rev 34537)
@@ -307,7 +307,7 @@
struct GNUNET_MQ_Handle *mq = cls;
struct GNUNET_MQ_Envelope *current_envelope;
- if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
+ if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
return;
mq->continue_task = GNUNET_SCHEDULER_NO_TASK;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34537 - in gnunet/src: cadet util,
gnunet <=