summaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.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_quota_compliance.c
parent48a507423a2f014aeb559ad4e58acd7ab1c8fc41 (diff)
LRN: Use GNUNET_strdup() instead of strdup ()
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c8
1 files changed, 4 insertions, 4 deletions
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,
if (ntohl (hdr->num) % 5000 == 0)
{
struct PeerContext *p = cls;
- char *ps = strdup (GNUNET_i2s (&p->id));
+ char *ps = GNUNET_strdup (GNUNET_i2s (&p->id));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"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)
if (n % 5000 == 0)
{
- char *receiver_s = strdup (GNUNET_i2s (&receiver->id));
+ char *receiver_s = GNUNET_strdup (GNUNET_i2s (&receiver->id));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"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)
static void
testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
{
- char *p1_c = strdup (GNUNET_i2s (&p1->id));
+ char *p1_c = GNUNET_strdup (GNUNET_i2s (&p1->id));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peers connected: %u (%s) <-> %u (%s)\n",
p1->no, p1_c, p2->no, GNUNET_i2s (&p2->id));
@@ -462,7 +462,7 @@ start_cb (struct PeerContext *p, void *cls)
sender = p2;
receiver = p1;
- char *sender_c = strdup (GNUNET_i2s (&sender->id));
+ char *sender_c = GNUNET_strdup (GNUNET_i2s (&sender->id));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Test tries to send from %u (%s) -> peer %u (%s)\n", sender->no,