* Success, connection is up. Signal client our success.
*
* @param cls our "struct ConnectContext"
- * @param size number of bytes available in buf
- * @param buf where to copy the message, NULL on error
- * @return number of bytes copied to buf
+ * @param peer identity of the peer that has connected
+ * @param latency the round trip latency of the connection to this peer
+ * @param distance distance the transport level distance to this peer
+ *
*/
static void
connect_notify (void *cls, const struct GNUNET_PeerIdentity * peer, struct GNUNET_TIME_Relative latency,
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
_("No SERVICEHOME specified in peer configuration, can't copy friends file!\n"));
- unlink(mytemp);
+ if (unlink(mytemp) != 0)
+ GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ _("Couldn't remove friends file %s!\n"), mytemp);
GNUNET_free (mytemp);
break;
}