gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33141 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r33141 - gnunet/src/core
Date: Fri, 25 Apr 2014 09:59:46 +0200

Author: grothoff
Date: 2014-04-25 09:59:45 +0200 (Fri, 25 Apr 2014)
New Revision: 33141

Modified:
   gnunet/src/core/core_api.c
   gnunet/src/core/gnunet-service-core_clients.c
   gnunet/src/core/gnunet-service-core_kx.c
   gnunet/src/core/gnunet-service-core_sessions.c
   gnunet/src/core/gnunet-service-core_typemap.c
Log:
-indent, doxygen

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2014-04-25 07:58:06 UTC (rev 33140)
+++ gnunet/src/core/core_api.c  2014-04-25 07:59:45 UTC (rev 33141)
@@ -191,7 +191,7 @@
   GNUNET_CORE_ControlContinuation cont;
 
   /**
-   * Closure for 'cont'.
+   * Closure for @e cont.
    */
   void *cont_cls;
 
@@ -761,6 +761,7 @@
   int trigger;
   uint16_t msize;
   uint16_t et;
+
   if (NULL == msg)
   {
     LOG (GNUNET_ERROR_TYPE_INFO,
@@ -795,7 +796,8 @@
     {
       /* mark so we don't call init on reconnect */
       h->init = NULL;
-      LOG (GNUNET_ERROR_TYPE_DEBUG, "Connected to core service of peer 
`%s'.\n",
+      LOG (GNUNET_ERROR_TYPE_DEBUG,
+           "Connected to core service of peer `%s'.\n",
            GNUNET_i2s (&h->me));
       init (h->cls, &h->me);
     }

Modified: gnunet/src/core/gnunet-service-core_clients.c
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.c       2014-04-25 07:58:06 UTC 
(rev 33140)
+++ gnunet/src/core/gnunet-service-core_clients.c       2014-04-25 07:59:45 UTC 
(rev 33141)
@@ -259,10 +259,11 @@
  *
  * @param cls unused
  * @param client new client that sent INIT
- * @param message the 'struct InitMessage' (presumably)
+ * @param message the `struct InitMessage` (presumably)
  */
 static void
-handle_client_init (void *cls, struct GNUNET_SERVER_Client *client,
+handle_client_init (void *cls,
+                    struct GNUNET_SERVER_Client *client,
                     const struct GNUNET_MessageHeader *message)
 {
   const struct InitMessage *im;
@@ -328,10 +329,11 @@
  *
  * @param cls unused
  * @param client new client that sent CORE_SEND_REQUEST
- * @param message the 'struct SendMessageRequest' (presumably)
+ * @param message the `struct SendMessageRequest` (presumably)
  */
 static void
-handle_client_send_request (void *cls, struct GNUNET_SERVER_Client *client,
+handle_client_send_request (void *cls,
+                            struct GNUNET_SERVER_Client *client,
                             const struct GNUNET_MessageHeader *message)
 {
   const struct SendMessageRequest *req;
@@ -439,7 +441,8 @@
  * @param message the `struct SendMessage`
  */
 static void
-handle_client_send (void *cls, struct GNUNET_SERVER_Client *client,
+handle_client_send (void *cls,
+                    struct GNUNET_SERVER_Client *client,
                     const struct GNUNET_MessageHeader *message)
 {
   const struct SendMessage *sm;
@@ -699,8 +702,7 @@
  */
 void
 GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
-                                           const struct GNUNET_PeerIdentity
-                                           *neighbour,
+                                           const struct GNUNET_PeerIdentity 
*neighbour,
                                            const struct GSC_TypeMap *tmap_old,
                                            const struct GSC_TypeMap *tmap_new)
 {
@@ -736,7 +738,8 @@
     cnm->header.size = htons (size);
     cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);
     cnm->reserved = htonl (0);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message to client.\n",
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Sending `%s' message to client.\n",
                 "NOTIFY_CONNECT");
     cnm->peer = *neighbour;
     send_to_client (client, &cnm->header, GNUNET_NO);
@@ -770,14 +773,13 @@
  * @param tmap_new updated type map for the neighbour, NULL for disconnect
  */
 void
-GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity
-                                            *neighbour,
+GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity 
*neighbour,
                                             const struct GSC_TypeMap *tmap_old,
                                             const struct GSC_TypeMap *tmap_new)
 {
   struct GSC_Client *c;
 
-  for (c = client_head; c != NULL; c = c->next)
+  for (c = client_head; NULL != c; c = c->next)
     GSC_CLIENTS_notify_client_about_neighbour (c, neighbour,
                                                tmap_old, tmap_new);
 }

Modified: gnunet/src/core/gnunet-service-core_kx.c
===================================================================
--- gnunet/src/core/gnunet-service-core_kx.c    2014-04-25 07:58:06 UTC (rev 
33140)
+++ gnunet/src/core/gnunet-service-core_kx.c    2014-04-25 07:59:45 UTC (rev 
33141)
@@ -431,7 +431,8 @@
  */
 static void
 derive_auth_key (struct GNUNET_CRYPTO_AuthKey *akey,
-                 const struct GNUNET_CRYPTO_SymmetricSessionKey *skey, 
uint32_t seed)
+                 const struct GNUNET_CRYPTO_SymmetricSessionKey *skey,
+                 uint32_t seed)
 {
   static const char ctx[] = "authentication key";
 
@@ -1176,7 +1177,8 @@
                 "PONG", GNUNET_i2s (&t.target), (unsigned int) t.challenge);
     return;
   }
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received PONG from `%s'\n",
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Received PONG from `%s'\n",
               GNUNET_i2s (&kx->peer));
   /* no need to resend key any longer */
   if (GNUNET_SCHEDULER_NO_TASK != kx->retry_set_key_task)

Modified: gnunet/src/core/gnunet-service-core_sessions.c
===================================================================
--- gnunet/src/core/gnunet-service-core_sessions.c      2014-04-25 07:58:06 UTC 
(rev 33140)
+++ gnunet/src/core/gnunet-service-core_sessions.c      2014-04-25 07:59:45 UTC 
(rev 33141)
@@ -329,7 +329,8 @@
                          GNUNET_CONTAINER_multipeermap_size (sessions),
                          GNUNET_NO);
   GSC_CLIENTS_notify_clients_about_neighbour (peer,
-                                              NULL, session->tmap);
+                                              NULL,
+                                              session->tmap);
   start_typemap_task (session);
 }
 
@@ -422,7 +423,8 @@
   struct GSC_Client *client = cls;
   struct Session *session = value;
 
-  GSC_CLIENTS_notify_client_about_neighbour (client, &session->peer,
+  GSC_CLIENTS_notify_client_about_neighbour (client,
+                                             &session->peer,
                                              NULL,      /* old TMAP: none */
                                              session->tmap);
   return GNUNET_OK;

Modified: gnunet/src/core/gnunet-service-core_typemap.c
===================================================================
--- gnunet/src/core/gnunet-service-core_typemap.c       2014-04-25 07:58:06 UTC 
(rev 33140)
+++ gnunet/src/core/gnunet-service-core_typemap.c       2014-04-25 07:59:45 UTC 
(rev 33141)
@@ -247,8 +247,8 @@
 /**
  * Remove a set of types from our type map.
  *
- * @param types array of message types no longer supported by this peer
- * @param tlen number of entries in @a types
+ * @param types array of types to remove
+ * @param tlen length of the @a types array
  */
 void
 GSC_TYPEMAP_remove (const uint16_t *types,




reply via email to

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