missing 'const'
authorChristian Grothoff <christian@grothoff.org>
Fri, 17 Feb 2017 14:19:48 +0000 (15:19 +0100)
committerChristian Grothoff <christian@grothoff.org>
Fri, 17 Feb 2017 14:19:48 +0000 (15:19 +0100)
src/cadet/cadet_api_new.c

index eb8bc2549faa903d90e8bdc904f3d57314306db8..e9ab3ea5798f955485f362bd64abef698d2d0a63 100644 (file)
@@ -707,7 +707,7 @@ handle_local_data (void *cls,
     return;
   }
 
-  payload = (struct GNUNET_MessageHeader *) &message[1];
+  payload = (const struct GNUNET_MessageHeader *) &message[1];
   type = ntohs (payload->type);
   fwd = ntohl (ch->ccn.channel_of_client) <= GNUNET_CADET_LOCAL_CHANNEL_ID_CLI;
   LOG (GNUNET_ERROR_TYPE_DEBUG,