fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 21 Jan 2010 14:52:11 +0000 (14:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 21 Jan 2010 14:52:11 +0000 (14:52 +0000)
src/topology/gnunet-daemon-topology.c

index 9f23fdc5065e7df1547f67e80222c8fcb0bdd7f6..d16869afd6629f906ae92e554f98799c5e1871a9 100644 (file)
@@ -164,7 +164,7 @@ struct DisconnectList
   /**
    * Our request handle.
    */
-  struct GNUNET_CORE_InformationRequestContext *rh;
+  struct GNUNET_CORE_PeerRequestHandle *rh;
 
   /**
    * Peer we tried to disconnect.
@@ -301,14 +301,11 @@ force_disconnect (const struct GNUNET_PeerIdentity *peer)
   GNUNET_CONTAINER_DLL_insert (disconnect_head,
                               disconnect_tail,
                               dl);
-  dl->rh = GNUNET_CORE_peer_get_info (sched, cfg,
-                                     peer,
-                                     GNUNET_TIME_UNIT_FOREVER_REL,
-                                     0,
-                                     0,
-                                     0,
-                                     &disconnect_done,
-                                     dl);
+  dl->rh = GNUNET_CORE_peer_request_disconnect (sched, cfg,                                            
+                                               GNUNET_TIME_UNIT_FOREVER_REL,
+                                               peer,
+                                               &disconnect_done,
+                                               dl);
 }