[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31622 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31622 - gnunet/src/util |
Date: |
Fri, 20 Dec 2013 17:05:07 +0100 |
Author: grothoff
Date: 2013-12-20 17:05:06 +0100 (Fri, 20 Dec 2013)
New Revision: 31622
Modified:
gnunet/src/util/client.c
gnunet/src/util/scheduler.c
Log:
-indentation, cleanup
Modified: gnunet/src/util/client.c
===================================================================
--- gnunet/src/util/client.c 2013-12-20 16:04:06 UTC (rev 31621)
+++ gnunet/src/util/client.c 2013-12-20 16:05:06 UTC (rev 31622)
@@ -576,8 +576,11 @@
char mbuf[msize] GNUNET_ALIGN;
struct GNUNET_MessageHeader *msg = (struct GNUNET_MessageHeader *) mbuf;
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Received message of type %u and size %u from
%s service.\n",
- ntohs (cmsg->type), msize, client->service_name);
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Received message of type %u and size %u from %s service.\n",
+ ntohs (cmsg->type),
+ msize,
+ client->service_name);
client->receive_task = GNUNET_SCHEDULER_NO_TASK;
GNUNET_assert (GNUNET_YES == client->msg_complete);
GNUNET_assert (client->received_pos >= msize);
Modified: gnunet/src/util/scheduler.c
===================================================================
--- gnunet/src/util/scheduler.c 2013-12-20 16:04:06 UTC (rev 31621)
+++ gnunet/src/util/scheduler.c 2013-12-20 16:05:06 UTC (rev 31622)
@@ -1610,7 +1610,6 @@
GNUNET_SCHEDULER_Task task, void *task_cls)
{
struct Task *t;
-
#if EXECINFO
void *backtrace_array[MAX_TRACE_DEPTH];
#endif
@@ -1627,12 +1626,12 @@
#endif
t->read_fd = -1;
t->write_fd = -1;
- if (rs != NULL)
+ if (NULL != rs)
{
t->read_set = GNUNET_NETWORK_fdset_create ();
GNUNET_NETWORK_fdset_copy (t->read_set, rs);
}
- if (ws != NULL)
+ if (NULL != ws)
{
t->write_set = GNUNET_NETWORK_fdset_create ();
GNUNET_NETWORK_fdset_copy (t->write_set, ws);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31622 - gnunet/src/util,
gnunet <=