gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35573 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35573 - gnunet/src/cadet
Date: Mon, 27 Apr 2015 21:14:07 +0200

Author: bartpolot
Date: 2015-04-27 21:14:06 +0200 (Mon, 27 Apr 2015)
New Revision: 35573

Modified:
   gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
- fix const, log

Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-04-27 19:14:05 UTC 
(rev 35572)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-04-27 19:14:06 UTC 
(rev 35573)
@@ -2058,8 +2058,7 @@
  * @param msg Key eXchange Pong message.
  */
 static void
-handle_pong (struct CadetTunnel *t,
-             const struct GNUNET_CADET_KX_Pong *msg)
+handle_pong (struct CadetTunnel *t, const struct GNUNET_CADET_KX_Pong *msg)
 {
   uint32_t challenge;
 
@@ -2245,15 +2244,15 @@
   uint16_t type;
 
   type = ntohs (message->type);
-  LOG (GNUNET_ERROR_TYPE_DEBUG, "kx message received\n", type);
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "kx message received: %s\n", GC_m2s (type));
   switch (type)
   {
     case GNUNET_MESSAGE_TYPE_CADET_KX_EPHEMERAL:
-      handle_ephemeral (t, (struct GNUNET_CADET_KX_Ephemeral *) message);
+      handle_ephemeral (t, (const struct GNUNET_CADET_KX_Ephemeral *) message);
       break;
 
     case GNUNET_MESSAGE_TYPE_CADET_KX_PONG:
-      handle_pong (t, (struct GNUNET_CADET_KX_Pong *) message);
+      handle_pong (t, (const struct GNUNET_CADET_KX_Pong *) message);
       break;
 
     default:




reply via email to

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