gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32196 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32196 - gnunet/src/mesh
Date: Tue, 4 Feb 2014 13:36:34 +0100

Author: bartpolot
Date: 2014-02-04 13:36:34 +0100 (Tue, 04 Feb 2014)
New Revision: 32196

Modified:
   gnunet/src/mesh/gnunet-service-mesh_hello.c
Log:
- doxygen, return on NULL

Modified: gnunet/src/mesh/gnunet-service-mesh_hello.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_hello.c 2014-02-04 12:36:33 UTC (rev 
32195)
+++ gnunet/src/mesh/gnunet-service-mesh_hello.c 2014-02-04 12:36:34 UTC (rev 
32196)
@@ -88,10 +88,10 @@
 /**
  * Process each hello message received from peerinfo.
  *
- * @param cls the 'struct GetUriContext'
- * @param peer identity of the peer
- * @param hello addresses of the peer
- * @param err_msg error message
+ * @param cls Closure (unused).
+ * @param peer Identity of the peer.
+ * @param hello Hello of the peer.
+ * @param err_msg Error message.
  */
 static void
 got_hello (void *cls, const struct GNUNET_PeerIdentity *id,
@@ -101,7 +101,10 @@
   struct MeshPeer *peer;
 
   if (NULL == id)
-    LOG (GNUNET_ERROR_TYPE_ERROR, "not a valid id\n");
+  {
+    LOG (GNUNET_ERROR_TYPE_ERROR, " hello with NULL id\n");
+    return;
+  }
 
   peer = GMP_get (id);
   GMP_set_hello (peer, hello);




reply via email to

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