From: Bart Polot Date: Mon, 27 Apr 2015 19:14:06 +0000 (+0000) Subject: - fix const, log X-Git-Tag: initial-import-from-subversion-38251~2057 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bf7240593db6e7c4ffc5f216198e5f141b3271e;p=oweals%2Fgnunet.git - fix const, log --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 1e7e77ea3..ac49a5cad 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -2058,8 +2058,7 @@ handle_ephemeral (struct CadetTunnel *t, * @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 @@ GCT_handle_kx (struct CadetTunnel *t, 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: