1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
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);
|