aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-07-31 16:20:23 +0200
committert3sserakt <t3ss@posteo.de>2021-07-31 16:28:23 +0200
commit285f958a5190d185ecee70248473e63af5759ad8 (patch)
tree0e240bef0ec1476d185808c38c825caf3e444881 /src
parentaa0f0adef22bdaf4cb1b9b6e16d7a57af5e7fc20 (diff)
downloadgnunet-285f958a5190d185ecee70248473e63af5759ad8.tar.gz
gnunet-285f958a5190d185ecee70248473e63af5759ad8.zip
- removed warnings
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet-cmds-helper.c10
-rw-r--r--src/transport/transport_api_cmd_connecting_peers.c6
-rw-r--r--src/transport/transport_api_cmd_send_simple.c4
-rw-r--r--src/transport/transport_api_cmd_start_peer.c2
4 files changed, 11 insertions, 11 deletions
diff --git a/src/testbed/gnunet-cmds-helper.c b/src/testbed/gnunet-cmds-helper.c
index 7cb753c23..4bc0656de 100644
--- a/src/testbed/gnunet-cmds-helper.c
+++ b/src/testbed/gnunet-cmds-helper.c
@@ -124,8 +124,8 @@ struct Plugin *plugin;
124 124
125/** 125/**
126 * The process handle to the testbed service 126 * The process handle to the testbed service
127 */ 127
128static struct GNUNET_OS_Process *cmd_binary_process; 128static struct GNUNET_OS_Process *cmd_binary_process;*/
129 129
130/** 130/**
131 * Handle to the testing system 131 * Handle to the testing system
@@ -276,7 +276,7 @@ write_task (void *cls)
276 * 276 *
277 * @param cls closure, NULL if we need to self-restart 277 * @param cls closure, NULL if we need to self-restart
278 */ 278 */
279static void 279/*static void
280child_death_task (void *cls) 280child_death_task (void *cls)
281{ 281{
282 const struct GNUNET_DISK_FileHandle *pr; 282 const struct GNUNET_DISK_FileHandle *pr;
@@ -284,7 +284,7 @@ child_death_task (void *cls)
284 284
285 pr = GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ); 285 pr = GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ);
286 child_death_task_id = NULL; 286 child_death_task_id = NULL;
287 /* consume the signal */ 287 // consume the signal
288 GNUNET_break (0 < GNUNET_DISK_file_read (pr, &c, sizeof(c))); 288 GNUNET_break (0 < GNUNET_DISK_file_read (pr, &c, sizeof(c)));
289 LOG_DEBUG ("Got SIGCHLD\n"); 289 LOG_DEBUG ("Got SIGCHLD\n");
290 290
@@ -294,7 +294,7 @@ child_death_task (void *cls)
294 pr, 294 pr,
295 &child_death_task, 295 &child_death_task,
296 NULL); 296 NULL);
297} 297}*/
298 298
299 299
300static void 300static void
diff --git a/src/transport/transport_api_cmd_connecting_peers.c b/src/transport/transport_api_cmd_connecting_peers.c
index f4b2e935f..3148806c7 100644
--- a/src/transport/transport_api_cmd_connecting_peers.c
+++ b/src/transport/transport_api_cmd_connecting_peers.c
@@ -53,13 +53,13 @@ connect_peers_run (void *cls,
53{ 53{
54 struct ConnectPeersState *cps = cls; 54 struct ConnectPeersState *cps = cls;
55 const struct GNUNET_TESTING_Command *peer1_cmd; 55 const struct GNUNET_TESTING_Command *peer1_cmd;
56 const struct GNUNET_TESTING_Command *peer2_cmd; 56 //const struct GNUNET_TESTING_Command *peer2_cmd;
57 struct GNUNET_TRANSPORT_ApplicationHandle *ah; 57 struct GNUNET_TRANSPORT_ApplicationHandle *ah;
58 struct GNUNET_PeerIdentity *peer = GNUNET_new (struct GNUNET_PeerIdentity); 58 struct GNUNET_PeerIdentity *peer = GNUNET_new (struct GNUNET_PeerIdentity);
59 char *addr; 59 char *addr;
60 struct GNUNET_TIME_Absolute t; 60 //struct GNUNET_TIME_Absolute t;
61 char *hello; 61 char *hello;
62 size_t *hello_size; 62 //size_t *hello_size;
63 enum GNUNET_NetworkType nt = 0; 63 enum GNUNET_NetworkType nt = 0;
64 char *peer_id; 64 char *peer_id;
65 65
diff --git a/src/transport/transport_api_cmd_send_simple.c b/src/transport/transport_api_cmd_send_simple.c
index 6e7b89497..8d652563f 100644
--- a/src/transport/transport_api_cmd_send_simple.c
+++ b/src/transport/transport_api_cmd_send_simple.c
@@ -72,9 +72,9 @@ send_simple_run (void *cls,
72 struct GNUNET_TRANSPORT_TESTING_TestMessage *test; 72 struct GNUNET_TRANSPORT_TESTING_TestMessage *test;
73 struct GNUNET_MQ_Handle *mq; 73 struct GNUNET_MQ_Handle *mq;
74 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map; 74 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map;
75 struct GNUNET_PeerIdentity *id; 75 //struct GNUNET_PeerIdentity *id;
76 const struct GNUNET_TESTING_Command *peer1_cmd; 76 const struct GNUNET_TESTING_Command *peer1_cmd;
77 const struct GNUNET_TESTING_Command *peer2_cmd; 77 //const struct GNUNET_TESTING_Command *peer2_cmd;
78 struct GNUNET_ShortHashCode *key = GNUNET_new (struct GNUNET_ShortHashCode); 78 struct GNUNET_ShortHashCode *key = GNUNET_new (struct GNUNET_ShortHashCode);
79 struct GNUNET_HashCode hc; 79 struct GNUNET_HashCode hc;
80 int node_number; 80 int node_number;
diff --git a/src/transport/transport_api_cmd_start_peer.c b/src/transport/transport_api_cmd_start_peer.c
index b2b26194a..8696a99dc 100644
--- a/src/transport/transport_api_cmd_start_peer.c
+++ b/src/transport/transport_api_cmd_start_peer.c
@@ -196,7 +196,7 @@ notify_connect (void *cls,
196 struct GNUNET_HashCode hc; 196 struct GNUNET_HashCode hc;
197 int node_number; 197 int node_number;
198 198
199 void *ret; 199 void *ret = NULL;
200 200
201 201
202 LOG (GNUNET_ERROR_TYPE_DEBUG, 202 LOG (GNUNET_ERROR_TYPE_DEBUG,