aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/mesh/gnunet-service-mesh_local.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index adac4cdf1..fa54fafa6 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -593,7 +593,7 @@ handle_ack (void *cls, struct GNUNET_SERVER_Client *client,
593// struct MeshChannel *ch = value; 593// struct MeshChannel *ch = value;
594// struct GNUNET_MESH_LocalMonitor *msg; 594// struct GNUNET_MESH_LocalMonitor *msg;
595// 595//
596// msg = GNUNET_malloc (sizeof(struct GNUNET_MESH_LocalMonitor)); 596// msg = GNUNET_new (struct GNUNET_MESH_LocalMonitor);
597// msg->channel_id = htonl (ch->gid); 597// msg->channel_id = htonl (ch->gid);
598// msg->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor)); 598// msg->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor));
599// msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS); 599// msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS);
@@ -688,7 +688,7 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client,
688 } 688 }
689 689
690 /* Initialize context */ 690 /* Initialize context */
691 resp = GNUNET_malloc (sizeof (struct GNUNET_MESH_LocalMonitor)); 691 resp = GNUNET_new (struct GNUNET_MESH_LocalMonitor);
692 *resp = *msg; 692 *resp = *msg;
693 resp->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor)); 693 resp->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor));
694 GNUNET_SERVER_notification_context_unicast (nc, c->handle, 694 GNUNET_SERVER_notification_context_unicast (nc, c->handle,