gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35802 - gnunet/src/exit


From: gnunet
Subject: [GNUnet-SVN] r35802 - gnunet/src/exit
Date: Mon, 25 May 2015 15:12:47 +0200

Author: grothoff
Date: 2015-05-25 15:12:47 +0200 (Mon, 25 May 2015)
New Revision: 35802

Modified:
   gnunet/src/exit/gnunet-daemon-exit.c
Log:
-logging, doxygen

Modified: gnunet/src/exit/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/exit/gnunet-daemon-exit.c        2015-05-25 13:09:43 UTC (rev 
35801)
+++ gnunet/src/exit/gnunet-daemon-exit.c        2015-05-25 13:12:47 UTC (rev 
35802)
@@ -1930,11 +1930,10 @@
  *
  * @param cls closure, NULL
  * @param channel connection to the other end
- * @param channel_ctx pointer to our 'struct ChannelState *'
+ * @param channel_ctx pointer to our `struct ChannelState *`
  * @param message the actual message
- *
- * @return GNUNET_OK to keep the connection open,
- *         GNUNET_SYSERR to close it (signal serious error)
+ * @return #GNUNET_OK to keep the connection open,
+ *         #GNUNET_SYSERR to close it (signal serious error)
  */
 static int
 receive_tcp_remote (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel 
*channel,
@@ -2061,7 +2060,8 @@
  *         #GNUNET_SYSERR to close it (signal serious error)
  */
 static int
-receive_tcp_data (void *cls GNUNET_UNUSED, struct GNUNET_CADET_Channel 
*channel,
+receive_tcp_data (void *cls GNUNET_UNUSED,
+                  struct GNUNET_CADET_Channel *channel,
                  void **channel_ctx GNUNET_UNUSED,
                  const struct GNUNET_MessageHeader *message)
 {
@@ -2089,6 +2089,7 @@
     GNUNET_STATISTICS_update (stats,
                              gettext_noop ("# TCP DATA requests dropped (no 
session)"),
                              1, GNUNET_NO);
+    GNUNET_break_op (0);
     return GNUNET_SYSERR;
   }
   if (data->tcp_header.off * 4 < sizeof (struct GNUNET_TUN_TcpHeader))
@@ -3008,7 +3009,7 @@
 
 
 /**
- * Callback from GNUNET_CADET for new channels.
+ * Callback from CADET for new channels.
  *
  * @param cls closure
  * @param channel new handle to the channel
@@ -3019,9 +3020,10 @@
  */
 static void *
 new_channel (void *cls,
-            struct GNUNET_CADET_Channel *channel,
-            const struct GNUNET_PeerIdentity *initiator,
-            uint32_t port, enum GNUNET_CADET_ChannelOption options)
+             struct GNUNET_CADET_Channel *channel,
+             const struct GNUNET_PeerIdentity *initiator,
+             uint32_t port,
+             enum GNUNET_CADET_ChannelOption options)
 {
   struct ChannelState *s = GNUNET_new (struct ChannelState);
 




reply via email to

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