gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r6940 - GNUnet/src/applications/dht/tools


From: gnunet
Subject: [GNUnet-SVN] r6940 - GNUnet/src/applications/dht/tools
Date: Fri, 30 May 2008 22:48:33 -0600 (MDT)

Author: nevans
Date: 2008-05-30 22:48:33 -0600 (Fri, 30 May 2008)
New Revision: 6940

Modified:
   GNUnet/src/applications/dht/tools/dht_api.c
Log:


Modified: GNUnet/src/applications/dht/tools/dht_api.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht_api.c 2008-05-31 04:42:08 UTC (rev 
6939)
+++ GNUnet/src/applications/dht/tools/dht_api.c 2008-05-31 04:48:33 UTC (rev 
6940)
@@ -73,7 +73,7 @@
 static void *
 poll_thread (void *cls)
 {
-  GNUNET_DHT_Context *info = cls;
+  struct GNUNET_DHT_Context *info = cls;
   GNUNET_MessageHeader *reply;
   CS_dht_request_put_MESSAGE *put;
   unsigned int size;
@@ -101,11 +101,10 @@
                                          (const char *) &put[1],
                                          info->closure)))
         info->aborted = GNUNET_YES;
-      info->total++;
       GNUNET_free (reply);
     }
   info->aborted = GNUNET_YES;
-  GNUNET_thread_stop_sleep (info->parent);
+  GNUNET_thread_stop_sleep (info->poll_thread);
   return NULL;
 }
 
@@ -214,7 +213,7 @@
   ctx->aborted = GNUNET_YES;
   GNUNET_client_connection_close_forever (ctx->sock);
   GNUNET_thread_join (ctx->poll_thread, &unused);
-  GNUNET_client_connection_destroy (sock);
+  GNUNET_client_connection_destroy (ctx->sock);
   return GNUNET_OK; 
 }                                                      
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]