Description: Fix build with GCC-14
Author: Martin Schanzenbach <schanzen@gnunet.org>
Bug-Debian: https://bugs.debian.org/1075031
Forwarded: not-needed
Last-Update: 2024-10-23

--- gnunet-0.20.0.orig/src/transport/test_transport_plugin_cmd_nat_upnp.c
+++ gnunet-0.20.0/src/transport/test_transport_plugin_cmd_nat_upnp.c
@@ -75,7 +75,7 @@ static void
 handle_test (void *cls,
              const struct GNUNET_TRANSPORT_TESTING_TestMessage *message)
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_receive,
                                           &ac);
@@ -118,7 +118,7 @@ get_waiting_for_barriers ()
 static void
 all_peers_started ()
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_send,
                                           &ac);
--- gnunet-0.20.0.orig/src/transport/test_transport_plugin_cmd_simple_send.c
+++ gnunet-0.20.0/src/transport/test_transport_plugin_cmd_simple_send.c
@@ -75,7 +75,7 @@ static void
 handle_test (void *cls,
              const struct GNUNET_TRANSPORT_TESTING_TestMessage *message)
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_receive,
                                           &ac);
@@ -102,7 +102,7 @@ get_waiting_for_barriers ()
 static void
 all_peers_started ()
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_send,
                                           &ac);
--- gnunet-0.20.0.orig/src/transport/test_transport_plugin_cmd_simple_send_broadcast.c
+++ gnunet-0.20.0/src/transport/test_transport_plugin_cmd_simple_send_broadcast.c
@@ -75,7 +75,7 @@ static void
 handle_test (void *cls,
              const struct GNUNET_TRANSPORT_TESTING_TestMessage *message)
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_receive,
                                           &ac);
@@ -102,7 +102,7 @@ get_waiting_for_barriers ()
 static void
 all_peers_started ()
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received message\n");
--- gnunet-0.20.0.orig/src/transport/test_transport_plugin_cmd_simple_send_dv.c
+++ gnunet-0.20.0/src/transport/test_transport_plugin_cmd_simple_send_dv.c
@@ -84,7 +84,7 @@ handle_test (void *cls,
              const struct GNUNET_TRANSPORT_TESTING_TestMessage *message)
 {
   struct GNUNET_PeerIdentity *peer = cls;
-  const struct GNUNET_TESTING_AsyncContext *ac_block;
+  struct GNUNET_TESTING_AsyncContext *ac_block;
   const struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map;
   unsigned int connected;
   struct GNUNET_TESTING_BlockState *bs;
@@ -129,7 +129,7 @@ handle_test (void *cls,
       {
         GNUNET_TESTING_get_trait_block_state (
           &block_receive,
-          (const struct GNUNET_TESTING_BlockState  **) &bs);
+          (struct GNUNET_TESTING_BlockState  **) &bs);
         bs->asynchronous_finish = GNUNET_YES;
       }
 
@@ -154,7 +154,7 @@ get_waiting_for_barriers ()
 static void
 all_peers_started ()
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Received message\n");
--- gnunet-0.20.0.orig/src/transport/test_transport_plugin_cmd_simple_send_performance.c
+++ gnunet-0.20.0/src/transport/test_transport_plugin_cmd_simple_send_performance.c
@@ -104,7 +104,7 @@ handle_test (void *cls,
              GNUNET_TRANSPORT_TESTING_PerformanceTestMessage *message)
 {
   struct GNUNET_PeerIdentity *peer = cls;
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
   struct Sender *sender;
   struct GNUNET_TIME_Absolute time_send;
   struct GNUNET_TIME_Absolute now;
@@ -224,7 +224,7 @@ get_waiting_for_barriers ()
 static void
 all_peers_started ()
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_send,
                                           &ac);
--- gnunet-0.20.0.orig/src/transport/test_transport_plugin_cmd_udp_backchannel.c
+++ gnunet-0.20.0/src/transport/test_transport_plugin_cmd_udp_backchannel.c
@@ -100,7 +100,7 @@ get_waiting_for_barriers ()
 static void
 all_peers_started ()
 {
-  const struct GNUNET_TESTING_AsyncContext *ac;
+  struct GNUNET_TESTING_AsyncContext *ac;
 
   GNUNET_TESTING_get_trait_async_context (&block_send,
                                           &ac);
