gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r12467 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r12467 - gnunet/src/dht
Date: Thu, 5 Aug 2010 17:41:40 +0200

Author: nevans
Date: 2010-08-05 17:41:40 +0200 (Thu, 05 Aug 2010)
New Revision: 12467

Modified:
   gnunet/src/dht/dhtlog.h
   gnunet/src/dht/plugin_dhtlog_dummy.c
   gnunet/src/dht/plugin_dhtlog_mysql.c
   gnunet/src/dht/plugin_dhtlog_mysql_dump.c
   gnunet/src/dht/test_dht_api.c
Log:
minor fixes

Modified: gnunet/src/dht/dhtlog.h
===================================================================
--- gnunet/src/dht/dhtlog.h     2010-08-05 12:37:42 UTC (rev 12466)
+++ gnunet/src/dht/dhtlog.h     2010-08-05 15:41:40 UTC (rev 12467)
@@ -156,7 +156,7 @@
    *
    * @return GNUNET_OK on success, GNUNET_SYSERR on failure
    */
-  int (*insert_extended_topology) (struct GNUNET_PeerIdentity *first, struct 
GNUNET_PeerIdentity *second);
+  int (*insert_extended_topology) (const struct GNUNET_PeerIdentity *first, 
const struct GNUNET_PeerIdentity *second);
 
   /*
    * Update dhttests.trials table with total connections information

Modified: gnunet/src/dht/plugin_dhtlog_dummy.c
===================================================================
--- gnunet/src/dht/plugin_dhtlog_dummy.c        2010-08-05 12:37:42 UTC (rev 
12466)
+++ gnunet/src/dht/plugin_dhtlog_dummy.c        2010-08-05 15:41:40 UTC (rev 
12467)
@@ -206,7 +206,7 @@
  * @return GNUNET_OK on success, GNUNET_SYSERR on failure
  */
 int
-add_extended_topology (struct GNUNET_PeerIdentity *first, struct 
GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct 
GNUNET_PeerIdentity *second)
 {
   return GNUNET_OK;
 }

Modified: gnunet/src/dht/plugin_dhtlog_mysql.c
===================================================================
--- gnunet/src/dht/plugin_dhtlog_mysql.c        2010-08-05 12:37:42 UTC (rev 
12466)
+++ gnunet/src/dht/plugin_dhtlog_mysql.c        2010-08-05 15:41:40 UTC (rev 
12467)
@@ -575,7 +575,7 @@
 
   int ret;
   memset (rbind, 0, sizeof (rbind));
-  rbind[0].buffer_type = MYSQL_TYPE_LONG;
+  rbind[0].buffer_type = MYSQL_TYPE_LONGLONG;
   rbind[0].buffer = nodeuid;
   rbind[0].is_unsigned = GNUNET_YES;
 
@@ -587,7 +587,7 @@
                                                               rbind,
                                                               return_ok,
                                                               NULL,
-                                                              MYSQL_TYPE_LONG,
+                                                              
MYSQL_TYPE_LONGLONG,
                                                               &current_trial,
                                                               GNUNET_YES,
                                                               
MYSQL_TYPE_VAR_STRING,
@@ -1287,7 +1287,7 @@
  * @return GNUNET_OK on success, GNUNET_SYSERR on failure
  */
 int
-add_extended_topology (struct GNUNET_PeerIdentity *first, struct 
GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct 
GNUNET_PeerIdentity *second)
 {
   int ret;
   unsigned long long first_uid;

Modified: gnunet/src/dht/plugin_dhtlog_mysql_dump.c
===================================================================
--- gnunet/src/dht/plugin_dhtlog_mysql_dump.c   2010-08-05 12:37:42 UTC (rev 
12466)
+++ gnunet/src/dht/plugin_dhtlog_mysql_dump.c   2010-08-05 15:41:40 UTC (rev 
12467)
@@ -200,7 +200,7 @@
  * @return GNUNET_OK on success, GNUNET_SYSERR on failure
  */
 int
-add_extended_topology (struct GNUNET_PeerIdentity *first, struct 
GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct 
GNUNET_PeerIdentity *second)
 {
   int ret;
   if (outfile == NULL)

Modified: gnunet/src/dht/test_dht_api.c
===================================================================
--- gnunet/src/dht/test_dht_api.c       2010-08-05 12:37:42 UTC (rev 12466)
+++ gnunet/src/dht/test_dht_api.c       2010-08-05 15:41:40 UTC (rev 12467)
@@ -34,7 +34,7 @@
 #include "gnunet_dht_service.h"
 #include "gnunet_hello_lib.h"
 
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
 
 #define VERBOSE_ARM GNUNET_NO
 
@@ -306,7 +306,7 @@
   retry_context.peer_ctx = peer;
 
   peer->find_peer_handle =
-    GNUNET_DHT_find_peer_start (peer->dht_handle, retry_context.next_timeout, 
0, &hash,
+    GNUNET_DHT_find_peer_start (peer->dht_handle, retry_context.next_timeout, 
1, &hash,
                                 &test_find_peer_processor, &retry_context, 
NULL, NULL);
 
   if (peer->find_peer_handle == NULL)




reply via email to

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