minor fixes
authorNathan S. Evans <evans@in.tum.de>
Thu, 5 Aug 2010 15:41:40 +0000 (15:41 +0000)
committerNathan S. Evans <evans@in.tum.de>
Thu, 5 Aug 2010 15:41:40 +0000 (15:41 +0000)
src/dht/dhtlog.h
src/dht/plugin_dhtlog_dummy.c
src/dht/plugin_dhtlog_mysql.c
src/dht/plugin_dhtlog_mysql_dump.c
src/dht/test_dht_api.c

index 36c81181b185e60b2ceacfb3b5498c790ec5cb52..ce3accb79eb7ab2f92d9202a42b3830814a5f680 100644 (file)
@@ -156,7 +156,7 @@ struct GNUNET_DHTLOG_Handle
    *
    * @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
index c90cc424b9784552f50d66d0cffc4a367a41cccd..173d77370a27d2de5099fdede299332a64c2fbf7 100644 (file)
@@ -206,7 +206,7 @@ add_topology (int num_connections)
  * @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;
 }
index 7798263c4beed5e68df8248ed03841d3ff7e8b4b..7b8c2e23f600252f441b6f740d9fa560e64c3a18 100644 (file)
@@ -575,7 +575,7 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
 
   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 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
                                                               rbind,
                                                               return_ok,
                                                               NULL,
-                                                              MYSQL_TYPE_LONG,
+                                                              MYSQL_TYPE_LONGLONG,
                                                               &current_trial,
                                                               GNUNET_YES,
                                                               MYSQL_TYPE_VAR_STRING,
@@ -1287,7 +1287,7 @@ add_topology (int num_connections)
  * @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;
index 603e592e742e44a0d56e5c62c31828f2c20cf956..da3981841f4238c5c5e16aacd708ef15326d2ec0 100644 (file)
@@ -200,7 +200,7 @@ add_topology (int num_connections)
  * @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)
index eb34ae3c68a1a540e2becfb7a2718729918361c3..f7ee94fa48fd4b3f0d7cf9e886aa5a371b94e696 100644 (file)
@@ -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 @@ test_find_peer (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   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)