removed unneeded function call
authorJulius Bünger <buenger@mytum.de>
Sun, 12 Mar 2017 20:59:58 +0000 (21:59 +0100)
committerJulius Bünger <buenger@mytum.de>
Sun, 12 Mar 2017 20:59:58 +0000 (21:59 +0100)
src/rps/gnunet-service-rps_peers.c

index db540fa3db53fc56284e96f5c83b32d6680a49f4..cbe3aefa35087d7ef1a1cdd180c26575683baa3e 100644 (file)
@@ -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,