diff options
Diffstat (limited to 'src/transport/test_transport_api_restart_1peer.c')
-rw-r--r-- | src/transport/test_transport_api_restart_1peer.c | 14 |
1 files changed, 7 insertions, 7 deletions
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 | |||
343 | testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls) | 343 | testing_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)); |