From: Julius Bünger Date: Sun, 12 Mar 2017 20:59:58 +0000 (+0100) Subject: removed unneeded function call X-Git-Tag: gnunet-0.11.0rc0~284^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0fca1bd10380e74a2f427490c98027e6a251e9ff;p=oweals%2Fgnunet.git removed unneeded function call --- diff --git a/src/rps/gnunet-service-rps_peers.c b/src/rps/gnunet-service-rps_peers.c index db540fa3d..cbe3aefa3 100644 --- a/src/rps/gnunet-service-rps_peers.c +++ b/src/rps/gnunet-service-rps_peers.c @@ -1546,13 +1546,9 @@ void Peers_cleanup_destroyed_channel (void *cls, const struct GNUNET_CADET_Channel *channel) { - struct GNUNET_PeerIdentity *peer; + struct GNUNET_PeerIdentity *peer = cls; struct PeerContext *peer_ctx; - peer = (struct GNUNET_PeerIdentity *) GNUNET_CADET_channel_get_info ( - (struct GNUNET_CADET_Channel *) channel, GNUNET_CADET_OPTION_PEER); - // FIXME wait for cadet to change this function - if (GNUNET_NO == Peers_check_peer_known (peer)) {/* We don't want to implicitly create a context that we're about to kill */ LOG (GNUNET_ERROR_TYPE_DEBUG,