summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.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/transport/plugin_transport_http_common.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
malloc -> new
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index de4cb9a26..c020118ac 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -60,7 +60,7 @@ http_split_address (const char * addr)
char *port_start = NULL;
char *path_start = NULL;
protocol_start = src;
- sp = GNUNET_malloc (sizeof (struct SplittedHTTPAddress));
+ sp = GNUNET_new (struct SplittedHTTPAddress);
/* Address string consists of protocol://host[:port]path*/
@@ -455,7 +455,7 @@ http_common_socket_from_address (const void *addr, size_t addrlen, int *res)
return NULL;
}
- s = GNUNET_malloc (sizeof (struct sockaddr_storage));
+ s = GNUNET_new (struct sockaddr_storage);
GNUNET_asprintf (&to_conv, "%s:%u", spa->host, spa->port);
if (GNUNET_SYSERR == GNUNET_STRINGS_to_address_ip (to_conv, strlen(to_conv), s))
{