Fixed compile issue, changed logging & dht_get_id working
authorBart Polot <bart@net.in.tum.de>
Fri, 21 Oct 2011 13:52:40 +0000 (13:52 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 21 Oct 2011 13:52:40 +0000 (13:52 +0000)
src/mesh/gnunet-service-mesh.c

index d5a457fbc4d4a70ca90acb6493a34c0138fdee80..94196be8436ac72f1b98c69d83b7e7571b30f631 100644 (file)
@@ -3011,12 +3011,14 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp,
   struct GNUNET_PeerIdentity pi;
   int i;
 
+  GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
+             "MESH: Got results from DHT!\n");
   GNUNET_PEER_resolve (path_info->peer->id, &pi);
   GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
-             "MESH: Got results from DHT for %s\n",
+             "MESH:   for %s\n",
              GNUNET_h2s_full(&pi.hashPubKey));
-  GNUNET_DHT_get_stop(path_info->peer->dhtget);
-  path_info->peer->dhtget = NULL;
+//   GNUNET_DHT_get_stop(path_info->peer->dhtget);
+//   path_info->peer->dhtget = NULL;
 
   p = path_build_from_dht (get_path, get_path_length,
                            put_path, put_path_length);
@@ -3058,7 +3060,6 @@ dht_get_type_handler (void *cls, struct GNUNET_TIME_Absolute exp,
   struct GNUNET_PeerIdentity id;
   struct MeshTunnel *t = cls;
   struct MeshPeerInfo *peer_info;
-  struct MeshPathInfo *path_info;
   struct MeshPeerPath *p;
   int i;