aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ats-test/test_transport_ats_multiple_peers.c4
-rw-r--r--src/ats/test_ats_api_scheduling.c2
-rw-r--r--src/transport/plugin_transport_wlan.c2
-rw-r--r--src/transport/test_quota_compliance.c8
-rw-r--r--src/transport/test_transport_api.c14
-rw-r--r--src/transport/test_transport_api_bidirectional_connect.c14
-rw-r--r--src/transport/test_transport_api_disconnect.c14
-rw-r--r--src/transport/test_transport_api_limited_sockets.c2
-rw-r--r--src/transport/test_transport_api_reliability.c8
-rw-r--r--src/transport/test_transport_api_restart_1peer.c14
-rw-r--r--src/transport/test_transport_api_restart_2peers.c14
-rw-r--r--src/transport/test_transport_api_timeout.c4
-rw-r--r--src/transport/test_transport_api_unreliability.c2
-rw-r--r--src/transport/test_transport_api_unreliability_constant.c2
-rw-r--r--src/transport/test_transport_testing.c4
15 files changed, 54 insertions, 54 deletions
diff --git a/src/ats-test/test_transport_ats_multiple_peers.c b/src/ats-test/test_transport_ats_multiple_peers.c
index 4d32dc462..51b813725 100644
--- a/src/ats-test/test_transport_ats_multiple_peers.c
+++ b/src/ats-test/test_transport_ats_multiple_peers.c
@@ -638,8 +638,8 @@ daemon_connect_cb (void *cls, const struct GNUNET_PeerIdentity *first,
638 struct GNUNET_TESTING_Daemon *second_daemon, 638 struct GNUNET_TESTING_Daemon *second_daemon,
639 const char *emsg) 639 const char *emsg)
640{ 640{
641 char *firstc = strdup (GNUNET_i2s (first)); 641 char *firstc = GNUNET_strdup (GNUNET_i2s (first));
642 char *secondc = strdup (GNUNET_i2s (second)); 642 char *secondc = GNUNET_strdup (GNUNET_i2s (second));
643 643
644 connected++; 644 connected++;
645 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected peers `%s'<->`%s' (%i/%i)\n", 645 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected peers `%s'<->`%s' (%i/%i)\n",
diff --git a/src/ats/test_ats_api_scheduling.c b/src/ats/test_ats_api_scheduling.c
index d24bb2c73..bf11aef8d 100644
--- a/src/ats/test_ats_api_scheduling.c
+++ b/src/ats/test_ats_api_scheduling.c
@@ -195,7 +195,7 @@ check (void *cls, char *const *args, const char *cfgfile,
195 195
196 addr[0].plugin = "test"; 196 addr[0].plugin = "test";
197 addr[0].session = NULL; 197 addr[0].session = NULL;
198 addr[0].addr = strdup ("test"); 198 addr[0].addr = GNUNET_strdup ("test");
199 addr[0].addr_len = 4; 199 addr[0].addr_len = 4;
200 200
201 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testing address creation\n"); 201 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testing address creation\n");
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 5d81d0afa..ae6af96f8 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -1482,7 +1482,7 @@ wlan_transport_start_wlan_helper (struct Plugin *plugin)
1482 { 1482 {
1483 if (GNUNET_OS_check_helper_binary (filenameloopback) == GNUNET_YES) 1483 if (GNUNET_OS_check_helper_binary (filenameloopback) == GNUNET_YES)
1484 { 1484 {
1485 absolute_filename = strdup (filenameloopback); 1485 absolute_filename = GNUNET_strdup (filenameloopback);
1486 } 1486 }
1487 else 1487 else
1488 { 1488 {
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index f4bc6fc54..bb33be1e8 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -277,7 +277,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
277 if (ntohl (hdr->num) % 5000 == 0) 277 if (ntohl (hdr->num) % 5000 == 0)
278 { 278 {
279 struct PeerContext *p = cls; 279 struct PeerContext *p = cls;
280 char *ps = strdup (GNUNET_i2s (&p->id)); 280 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
281 281
282 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 282 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
283 "Peer %u (`%s') got message %u of size %u from peer (`%s')\n", 283 "Peer %u (`%s') got message %u of size %u from peer (`%s')\n",
@@ -331,7 +331,7 @@ notify_ready (void *cls, size_t size, void *buf)
331 if (n % 5000 == 0) 331 if (n % 5000 == 0)
332 { 332 {
333 333
334 char *receiver_s = strdup (GNUNET_i2s (&receiver->id)); 334 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&receiver->id));
335 335
336 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 336 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
337 "Sending message of size %u from peer %u (`%4s') -> peer %u (`%s') !\n", 337 "Sending message of size %u from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -429,7 +429,7 @@ measure (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
429static void 429static void
430testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 430testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
431{ 431{
432 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 432 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
433 433
434 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 434 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
435 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 435 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -462,7 +462,7 @@ start_cb (struct PeerContext *p, void *cls)
462 sender = p2; 462 sender = p2;
463 receiver = p1; 463 receiver = p1;
464 464
465 char *sender_c = strdup (GNUNET_i2s (&sender->id)); 465 char *sender_c = GNUNET_strdup (GNUNET_i2s (&sender->id));
466 466
467 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 467 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
468 "Test tries to send from %u (%s) -> peer %u (%s)\n", sender->no, 468 "Test tries to send from %u (%s) -> peer %u (%s)\n", sender->no,
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index a04017019..dd0704231 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -151,7 +151,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
151 t = p2; 151 t = p2;
152 GNUNET_assert (t != NULL); 152 GNUNET_assert (t != NULL);
153 153
154 char *ps = strdup (GNUNET_i2s (&p->id)); 154 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
155 155
156 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 156 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
157 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", 157 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n",
@@ -200,7 +200,7 @@ notify_ready (void *cls, size_t size, void *buf)
200 hdr->size = htons (sizeof (struct GNUNET_MessageHeader)); 200 hdr->size = htons (sizeof (struct GNUNET_MessageHeader));
201 hdr->type = htons (MTYPE); 201 hdr->type = htons (MTYPE);
202 } 202 }
203 char *ps = strdup (GNUNET_i2s (&p2->id)); 203 char *ps = GNUNET_strdup (GNUNET_i2s (&p2->id));
204 204
205 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 205 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
206 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n", 206 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n",
@@ -218,7 +218,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
218 218
219 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) 219 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
220 return; 220 return;
221 char *receiver_s = strdup (GNUNET_i2s (&p1->id)); 221 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
222 222
223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
224 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n", 224 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -247,7 +247,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
247 t = p2; 247 t = p2;
248 GNUNET_assert (t != NULL); 248 GNUNET_assert (t != NULL);
249 249
250 char *ps = strdup (GNUNET_i2s (&p->id)); 250 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
251 251
252 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 252 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
253 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps, 253 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps,
@@ -260,7 +260,7 @@ static void
260notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) 260notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
261{ 261{
262 struct PeerContext *p = cls; 262 struct PeerContext *p = cls;
263 char *ps = strdup (GNUNET_i2s (&p->id)); 263 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
264 264
265 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 265 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
266 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, 266 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps,
@@ -275,7 +275,7 @@ static void
275testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 275testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
276{ 276{
277 cc = NULL; 277 cc = NULL;
278 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 278 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
279 279
280 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 280 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
281 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 281 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -299,7 +299,7 @@ start_cb (struct PeerContext *p, void *cls)
299 if (started != 2) 299 if (started != 2)
300 return; 300 return;
301 301
302 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 302 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
303 303
304 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 304 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
305 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", 305 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",
diff --git a/src/transport/test_transport_api_bidirectional_connect.c b/src/transport/test_transport_api_bidirectional_connect.c
index bf8de42e9..aa6f98027 100644
--- a/src/transport/test_transport_api_bidirectional_connect.c
+++ b/src/transport/test_transport_api_bidirectional_connect.c
@@ -150,7 +150,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
150 t = p2; 150 t = p2;
151 GNUNET_assert (t != NULL); 151 GNUNET_assert (t != NULL);
152 152
153 char *ps = strdup (GNUNET_i2s (&p->id)); 153 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
154 154
155 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 155 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
156 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", 156 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n",
@@ -199,7 +199,7 @@ notify_ready (void *cls, size_t size, void *buf)
199 hdr->size = htons (sizeof (struct GNUNET_MessageHeader)); 199 hdr->size = htons (sizeof (struct GNUNET_MessageHeader));
200 hdr->type = htons (MTYPE); 200 hdr->type = htons (MTYPE);
201 } 201 }
202 char *ps = strdup (GNUNET_i2s (&p2->id)); 202 char *ps = GNUNET_strdup (GNUNET_i2s (&p2->id));
203 203
204 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 204 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
205 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n", 205 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n",
@@ -217,7 +217,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
217 217
218 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) 218 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
219 return; 219 return;
220 char *receiver_s = strdup (GNUNET_i2s (&p1->id)); 220 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
221 221
222 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 222 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
223 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n", 223 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -246,7 +246,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
246 t = p2; 246 t = p2;
247 GNUNET_assert (t != NULL); 247 GNUNET_assert (t != NULL);
248 248
249 char *ps = strdup (GNUNET_i2s (&p->id)); 249 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
250 250
251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
252 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps, 252 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps,
@@ -259,7 +259,7 @@ static void
259notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) 259notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
260{ 260{
261 struct PeerContext *p = cls; 261 struct PeerContext *p = cls;
262 char *ps = strdup (GNUNET_i2s (&p->id)); 262 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
263 263
264 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 264 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
265 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, 265 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps,
@@ -284,7 +284,7 @@ testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
284 GNUNET_TRANSPORT_TESTING_connect_peers_cancel (tth, cc1); 284 GNUNET_TRANSPORT_TESTING_connect_peers_cancel (tth, cc1);
285 } 285 }
286 286
287 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 287 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
288 288
289 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 289 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
290 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 290 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -306,7 +306,7 @@ start_cb (struct PeerContext *p, void *cls)
306 if (started != 2) 306 if (started != 2)
307 return; 307 return;
308 308
309 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 309 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
310 310
311 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 311 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
312 "Test tries to connect peer %u (`%s') <-> peer %u (`%s')\n", 312 "Test tries to connect peer %u (`%s') <-> peer %u (`%s')\n",
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c
index 703de2a5b..7dd9bd913 100644
--- a/src/transport/test_transport_api_disconnect.c
+++ b/src/transport/test_transport_api_disconnect.c
@@ -154,7 +154,7 @@ static void
154notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) 154notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
155{ 155{
156 struct PeerContext *p = cls; 156 struct PeerContext *p = cls;
157 char *ps = strdup (GNUNET_i2s (&p->id)); 157 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
158 158
159 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 159 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
160 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, 160 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps,
@@ -202,7 +202,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
202 t = p2; 202 t = p2;
203 GNUNET_assert (t != NULL); 203 GNUNET_assert (t != NULL);
204 204
205 char *ps = strdup (GNUNET_i2s (&p->id)); 205 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
206 206
207 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 207 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
208 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", 208 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n",
@@ -246,7 +246,7 @@ notify_ready (void *cls, size_t size, void *buf)
246 hdr->size = htons (sizeof (struct GNUNET_MessageHeader)); 246 hdr->size = htons (sizeof (struct GNUNET_MessageHeader));
247 hdr->type = htons (MTYPE); 247 hdr->type = htons (MTYPE);
248 } 248 }
249 char *ps = strdup (GNUNET_i2s (&p2->id)); 249 char *ps = GNUNET_strdup (GNUNET_i2s (&p2->id));
250 250
251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
252 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n", 252 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n",
@@ -264,7 +264,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
264 264
265 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) 265 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
266 return; 266 return;
267 char *receiver_s = strdup (GNUNET_i2s (&p1->id)); 267 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
268 268
269 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 269 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
270 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n", 270 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -293,7 +293,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
293 t = p2; 293 t = p2;
294 GNUNET_assert (t != NULL); 294 GNUNET_assert (t != NULL);
295 295
296 char *ps = strdup (GNUNET_i2s (&p->id)); 296 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
297 297
298 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 298 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
299 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps, 299 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps,
@@ -306,7 +306,7 @@ static void
306testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 306testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
307{ 307{
308 cc = NULL; 308 cc = NULL;
309 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 309 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
310 310
311 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 311 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
312 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 312 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -330,7 +330,7 @@ start_cb (struct PeerContext *p, void *cls)
330 if (started != 2) 330 if (started != 2)
331 return; 331 return;
332 332
333 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 333 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
334 334
335 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 335 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
336 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", 336 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",
diff --git a/src/transport/test_transport_api_limited_sockets.c b/src/transport/test_transport_api_limited_sockets.c
index f165a5771..7fb13e261 100644
--- a/src/transport/test_transport_api_limited_sockets.c
+++ b/src/transport/test_transport_api_limited_sockets.c
@@ -217,7 +217,7 @@ static void
217testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 217testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
218{ 218{
219 cc = NULL; 219 cc = NULL;
220 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 220 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
221 221
222 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c, 222 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c,
223 GNUNET_i2s (&p2->id)); 223 GNUNET_i2s (&p2->id));
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index 7b0b92078..15fc4f6b9 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -252,7 +252,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
252 if (ntohl (hdr->num) % 5000 == 0) 252 if (ntohl (hdr->num) % 5000 == 0)
253 { 253 {
254 struct PeerContext *p = cls; 254 struct PeerContext *p = cls;
255 char *ps = strdup (GNUNET_i2s (&p->id)); 255 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
256 256
257 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 257 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
258 "Peer %u (`%s') got message %u of size %u from peer (`%s')\n", 258 "Peer %u (`%s') got message %u of size %u from peer (`%s')\n",
@@ -319,7 +319,7 @@ notify_ready (void *cls, size_t size, void *buf)
319 if (n % 5000 == 0) 319 if (n % 5000 == 0)
320 { 320 {
321 321
322 char *receiver_s = strdup (GNUNET_i2s (&receiver->id)); 322 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&receiver->id));
323 323
324 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 324 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
325 "Sending message of size %u from peer %u (`%4s') -> peer %u (`%s') !\n", 325 "Sending message of size %u from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -394,7 +394,7 @@ sendtask ()
394static void 394static void
395testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 395testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
396{ 396{
397 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 397 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
398 398
399 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 399 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
400 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 400 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -432,7 +432,7 @@ start_cb (struct PeerContext *p, void *cls)
432 sender = p2; 432 sender = p2;
433 receiver = p1; 433 receiver = p1;
434 434
435 char *sender_c = strdup (GNUNET_i2s (&sender->id)); 435 char *sender_c = GNUNET_strdup (GNUNET_i2s (&sender->id));
436 436
437 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 437 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
438 "Test triest to send from %u (%s) -> peer %u (%s)\n", sender->no, 438 "Test triest to send from %u (%s) -> peer %u (%s)\n", sender->no,
diff --git a/src/transport/test_transport_api_restart_1peer.c b/src/transport/test_transport_api_restart_1peer.c
index 67530f421..87383bbac 100644
--- a/src/transport/test_transport_api_restart_1peer.c
+++ b/src/transport/test_transport_api_restart_1peer.c
@@ -199,7 +199,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
199 t = p2; 199 t = p2;
200 GNUNET_assert (t != NULL); 200 GNUNET_assert (t != NULL);
201 201
202 char *ps = strdup (GNUNET_i2s (&p->id)); 202 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
203 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 203 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
204 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", 204 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n",
205 p->no, ps, ntohs (message->type), ntohs (message->size), t->no, 205 p->no, ps, ntohs (message->type), ntohs (message->size), t->no,
@@ -261,7 +261,7 @@ notify_ready (void *cls, size_t size, void *buf)
261 hdr->size = htons (sizeof (struct GNUNET_MessageHeader)); 261 hdr->size = htons (sizeof (struct GNUNET_MessageHeader));
262 hdr->type = htons (MTYPE); 262 hdr->type = htons (MTYPE);
263 } 263 }
264 char *ps = strdup (GNUNET_i2s (&p2->id)); 264 char *ps = GNUNET_strdup (GNUNET_i2s (&p2->id));
265 265
266 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 266 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
267 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n", 267 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n",
@@ -279,7 +279,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
279 279
280 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) 280 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
281 return; 281 return;
282 char *receiver_s = strdup (GNUNET_i2s (&p1->id)); 282 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
283 283
284 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 284 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
285 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n", 285 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -308,7 +308,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
308 t = p2; 308 t = p2;
309 GNUNET_assert (t != NULL); 309 GNUNET_assert (t != NULL);
310 310
311 char *ps = strdup (GNUNET_i2s (&p->id)); 311 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
312 312
313 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 313 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
314 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps, 314 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps,
@@ -328,7 +328,7 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
328 struct PeerContext *p = cls; 328 struct PeerContext *p = cls;
329 329
330 330
331 char *ps = strdup (GNUNET_i2s (&p->id)); 331 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
332 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 332 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
333 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, 333 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps,
334 GNUNET_i2s (peer)); 334 GNUNET_i2s (peer));
@@ -343,7 +343,7 @@ static void
343testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 343testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
344{ 344{
345 cc = NULL; 345 cc = NULL;
346 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 346 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
347 347
348 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 348 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
349 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 349 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -367,7 +367,7 @@ start_cb (struct PeerContext *p, void *cls)
367 if (started != 2) 367 if (started != 2)
368 return; 368 return;
369 369
370 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 370 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
371 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 371 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
372 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", 372 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",
373 p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id)); 373 p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id));
diff --git a/src/transport/test_transport_api_restart_2peers.c b/src/transport/test_transport_api_restart_2peers.c
index dab8f39a6..44a41614f 100644
--- a/src/transport/test_transport_api_restart_2peers.c
+++ b/src/transport/test_transport_api_restart_2peers.c
@@ -204,7 +204,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
204 t = p2; 204 t = p2;
205 GNUNET_assert (t != NULL); 205 GNUNET_assert (t != NULL);
206 206
207 char *ps = strdup (GNUNET_i2s (&p->id)); 207 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
209 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", 209 "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n",
210 p->no, ps, ntohs (message->type), ntohs (message->size), t->no, 210 p->no, ps, ntohs (message->type), ntohs (message->size), t->no,
@@ -267,7 +267,7 @@ notify_ready (void *cls, size_t size, void *buf)
267 hdr->size = htons (sizeof (struct GNUNET_MessageHeader)); 267 hdr->size = htons (sizeof (struct GNUNET_MessageHeader));
268 hdr->type = htons (MTYPE); 268 hdr->type = htons (MTYPE);
269 } 269 }
270 char *ps = strdup (GNUNET_i2s (&p2->id)); 270 char *ps = GNUNET_strdup (GNUNET_i2s (&p2->id));
271 271
272 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 272 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
273 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n", 273 "Peer %u (`%4s') sending message with type %u and size %u bytes to peer %u (`%4s')\n",
@@ -285,7 +285,7 @@ sendtask (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
285 285
286 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) 286 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
287 return; 287 return;
288 char *receiver_s = strdup (GNUNET_i2s (&p1->id)); 288 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
289 289
290 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 290 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
291 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n", 291 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n",
@@ -314,7 +314,7 @@ notify_connect (void *cls, const struct GNUNET_PeerIdentity *peer,
314 t = p2; 314 t = p2;
315 GNUNET_assert (t != NULL); 315 GNUNET_assert (t != NULL);
316 316
317 char *ps = strdup (GNUNET_i2s (&p->id)); 317 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
318 318
319 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 319 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
320 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps, 320 "Peer %u (`%4s'): peer %u (`%s') connected to me!\n", p->no, ps,
@@ -334,7 +334,7 @@ notify_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer)
334 struct PeerContext *p = cls; 334 struct PeerContext *p = cls;
335 335
336 336
337 char *ps = strdup (GNUNET_i2s (&p->id)); 337 char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
338 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 338 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
339 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps, 339 "Peer %u (`%4s'): peer (`%s') disconnected from me!\n", p->no, ps,
340 GNUNET_i2s (peer)); 340 GNUNET_i2s (peer));
@@ -349,7 +349,7 @@ static void
349testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 349testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
350{ 350{
351 cc = NULL; 351 cc = NULL;
352 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 352 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
353 353
354 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n", 354 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
355 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id)); 355 p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -373,7 +373,7 @@ start_cb (struct PeerContext *p, void *cls)
373 if (started != 2) 373 if (started != 2)
374 return; 374 return;
375 375
376 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 376 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
377 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 377 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
378 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", 378 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",
379 p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id)); 379 p1->no, sender_c, p2->no, GNUNET_i2s (&p2->id));
diff --git a/src/transport/test_transport_api_timeout.c b/src/transport/test_transport_api_timeout.c
index 9a16447f3..29f7dd4af 100644
--- a/src/transport/test_transport_api_timeout.c
+++ b/src/transport/test_transport_api_timeout.c
@@ -227,7 +227,7 @@ static void
227testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 227testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
228{ 228{
229 cc = NULL; 229 cc = NULL;
230 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 230 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
231 231
232 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c, 232 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c,
233 GNUNET_i2s (&p2->id)); 233 GNUNET_i2s (&p2->id));
@@ -251,7 +251,7 @@ start_cb (struct PeerContext *p, void *cls)
251 if (started != 2) 251 if (started != 2)
252 return; 252 return;
253 253
254 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 254 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
255 255
256 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 256 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
257 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", 257 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c
index 1e93615e7..90defae02 100644
--- a/src/transport/test_transport_api_unreliability.c
+++ b/src/transport/test_transport_api_unreliability.c
@@ -456,7 +456,7 @@ sendtask ()
456static void 456static void
457testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 457testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
458{ 458{
459 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 459 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
460 460
461 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c, 461 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c,
462 GNUNET_i2s (&p2->id)); 462 GNUNET_i2s (&p2->id));
diff --git a/src/transport/test_transport_api_unreliability_constant.c b/src/transport/test_transport_api_unreliability_constant.c
index feca0c8b7..414bca7c8 100644
--- a/src/transport/test_transport_api_unreliability_constant.c
+++ b/src/transport/test_transport_api_unreliability_constant.c
@@ -402,7 +402,7 @@ sendtask ()
402static void 402static void
403testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 403testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
404{ 404{
405 char *p1_c = strdup (GNUNET_i2s (&p1->id)); 405 char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
406 406
407 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c, 407 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %s <-> %s\n", p1_c,
408 GNUNET_i2s (&p2->id)); 408 GNUNET_i2s (&p2->id));
diff --git a/src/transport/test_transport_testing.c b/src/transport/test_transport_testing.c
index 7ba78c04e..be8c547cc 100644
--- a/src/transport/test_transport_testing.c
+++ b/src/transport/test_transport_testing.c
@@ -94,7 +94,7 @@ end_badly ()
94static void 94static void
95testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) 95testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
96{ 96{
97 char *ps = strdup (GNUNET_i2s (&p1->id)); 97 char *ps = GNUNET_strdup (GNUNET_i2s (&p1->id));
98 98
99 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 99 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
100 "Peer %u (`%4s') connected to peer %u (`%s')!\n", p1->no, ps, 100 "Peer %u (`%4s') connected to peer %u (`%s')!\n", p1->no, ps,
@@ -140,7 +140,7 @@ start_cb (struct PeerContext *p, void *cls)
140 if (started != 2) 140 if (started != 2)
141 return; 141 return;
142 142
143 char *sender_c = strdup (GNUNET_i2s (&p1->id)); 143 char *sender_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
144 144
145 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 145 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
146 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n", 146 "Test tries to connect peer %u (`%s') -> peer %u (`%s')\n",