{
struct Peer *ret;
- ret = GNUNET_malloc (sizeof (struct Peer));
+ ret = GNUNET_new (struct Peer);
ret->pid = *peer;
ret->is_friend = is_friend;
if (hello != NULL)
{
/* now! */
pl->hello_req =
- GNUNET_CORE_notify_transmit_ready (handle, GNUNET_YES, 0,
+ GNUNET_CORE_notify_transmit_ready (handle, GNUNET_YES,
+ GNUNET_CORE_PRIO_BEST_EFFORT,
GNUNET_CONSTANTS_SERVICE_TIMEOUT,
&pl->pid, next_want,
&hello_advertising_ready, pl);
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
_("Found myself `%s' in friend list (useless, ignored)\n"),
- GNUNET_i2s (&pid));
+ GNUNET_i2s (pid));
return;
}
(*entries_found)++;