diff options
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 2 | ||||
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo_plugins.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index e62df3047..f4a9d3aa6 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -364,7 +364,7 @@ print_peer_info (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
364 | GNUNET_i2s_full (peer)); | 364 | GNUNET_i2s_full (peer)); |
365 | return; | 365 | return; |
366 | } | 366 | } |
367 | pc = GNUNET_malloc (sizeof (struct PrintContext)); | 367 | pc = GNUNET_new (struct PrintContext); |
368 | GNUNET_CONTAINER_DLL_insert (pc_head, | 368 | GNUNET_CONTAINER_DLL_insert (pc_head, |
369 | pc_tail, | 369 | pc_tail, |
370 | pc); | 370 | pc); |
diff --git a/src/peerinfo-tool/gnunet-peerinfo_plugins.c b/src/peerinfo-tool/gnunet-peerinfo_plugins.c index 29dc4d017..37553f2f7 100644 --- a/src/peerinfo-tool/gnunet-peerinfo_plugins.c +++ b/src/peerinfo-tool/gnunet-peerinfo_plugins.c | |||
@@ -109,7 +109,7 @@ GPI_plugins_load (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
109 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading `%s' transport plugin\n"), | 109 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading `%s' transport plugin\n"), |
110 | pos); | 110 | pos); |
111 | GNUNET_asprintf (&libname, "libgnunet_plugin_transport_%s", pos); | 111 | GNUNET_asprintf (&libname, "libgnunet_plugin_transport_%s", pos); |
112 | plug = GNUNET_malloc (sizeof (struct TransportPlugin)); | 112 | plug = GNUNET_new (struct TransportPlugin); |
113 | plug->short_name = GNUNET_strdup (pos); | 113 | plug->short_name = GNUNET_strdup (pos); |
114 | plug->lib_name = libname; | 114 | plug->lib_name = libname; |
115 | plug->env.cfg = cfg; | 115 | plug->env.cfg = cfg; |