memcpy (addrbuf, address->address, alen);
memcpy (&addrbuf[alen], address->transport_name, slen);
- alc = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_AddressToStringContext));
+ alc = GNUNET_new (struct GNUNET_TRANSPORT_AddressToStringContext);
alc->cb = aluc;
alc->cb_cls = aluc_cls;
alc->timeout = GNUNET_TIME_relative_to_absolute (timeout);
/**
* Cancel request for address conversion.
*
- * @param alc handle for the request to cancel
+ * @param pic the context handle
*/
void
GNUNET_TRANSPORT_address_to_string_cancel (struct
GNUNET_TRANSPORT_AddressToStringContext
- *alc)
+ *pic)
{
- GNUNET_CLIENT_disconnect (alc->client);
- GNUNET_free (alc);
+ GNUNET_CLIENT_disconnect (pic->client);
+ GNUNET_free (pic);
}