File: callback-fix-gcc-15.patch

package info (click to toggle)
gnunet 0.20.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,888 kB
  • sloc: ansic: 376,559; makefile: 9,289; sh: 9,228; javascript: 9,213; lisp: 448; sql: 312; xml: 291; python: 167; php: 117; awk: 102; perl: 57; ruby: 31; sed: 16
file content (44 lines) | stat: -rw-r--r-- 1,815 bytes parent folder | download
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
From: Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Date: Fri, 7 Nov 2025 20:30:14 +0500
Subject: callback fix gcc-15 build failure
Forwarded: not-needed

diff --git a/src/testing/gnunet-cmds-helper.c b/src/testing/gnunet-cmds-helper.c
index 4428d4402..927aaf141 100644
--- a/src/testing/gnunet-cmds-helper.c
+++ b/src/testing/gnunet-cmds-helper.c
@@ -295,7 +295,7 @@ write_message (struct GNUNET_MessageHeader *message,
 
 
 static void
-delay_shutdown_cb ()
+delay_shutdown_cb (void *cls)
 {
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "doing shutdown after delay\n");
diff --git a/src/include/gnunet_testing_plugin.h b/src/include/gnunet_testing_plugin.h
index 12fbd7b75..cf34005a9 100644
--- a/src/include/gnunet_testing_plugin.h
+++ b/src/include/gnunet_testing_plugin.h
@@ -54,7 +54,7 @@ typedef void
  * Callback function which writes a message from the helper process running on a netjail node to the master process * signaling that the test case running on the netjail node finished.
  */
 typedef void
-(*GNUNET_TESTING_cmd_helper_finish_cb) ();
+(*GNUNET_TESTING_cmd_helper_finish_cb) (enum GNUNET_GenericReturnValue rv);
 
 /**
  * Function to be implemented for each test case plugin which starts the test case on a netjail node.
diff --git a/src/reclaim/gnunet-did.c b/src/reclaim/gnunet-did.c
index 1f91e0ee2..52f63a226 100644
--- a/src/reclaim/gnunet-did.c
+++ b/src/reclaim/gnunet-did.c
@@ -304,7 +304,7 @@ remove_did_document (remove_did_document_callback cont, void *cls)
 
 // Needed because create_did_ego_lookup_cb() and
 // create_did_ego_create_cb() can call each other
-static void create_did_ego_lockup_cb ();
+static void create_did_ego_lockup_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego);
 
 /**
  * @brief Create a DID(-Document). Called after DID has been created