aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_timeout.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-25 22:15:37 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-25 22:15:37 +0000
commitecdc64b5af16246777bb2a4cab79e203fe462a66 (patch)
tree5add1c039d56c297fd199a2829a3c1453e0f5e38 /src/transport/test_transport_api_timeout.c
parent48a507423a2f014aeb559ad4e58acd7ab1c8fc41 (diff)
downloadgnunet-ecdc64b5af16246777bb2a4cab79e203fe462a66.tar.gz
gnunet-ecdc64b5af16246777bb2a4cab79e203fe462a66.zip
LRN: Use GNUNET_strdup() instead of strdup ()
Diffstat (limited to 'src/transport/test_transport_api_timeout.c')
-rw-r--r--src/transport/test_transport_api_timeout.c4
1 files changed, 2 insertions, 2 deletions
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",