aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-08-05 15:41:40 +0000
committerNathan S. Evans <evans@in.tum.de>2010-08-05 15:41:40 +0000
commit3e6df453129fd53ff09c342c4d7b4350afb8929a (patch)
tree5e24c5e59297dc0208c9a983974bff19663bf4e1 /src
parent98f6e6f2f5cebff88d8b9d1ad82cfa603c0b70be (diff)
downloadgnunet-3e6df453129fd53ff09c342c4d7b4350afb8929a.tar.gz
gnunet-3e6df453129fd53ff09c342c4d7b4350afb8929a.zip
minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/dht/dhtlog.h2
-rw-r--r--src/dht/plugin_dhtlog_dummy.c2
-rw-r--r--src/dht/plugin_dhtlog_mysql.c6
-rw-r--r--src/dht/plugin_dhtlog_mysql_dump.c2
-rw-r--r--src/dht/test_dht_api.c4
5 files changed, 8 insertions, 8 deletions
diff --git a/src/dht/dhtlog.h b/src/dht/dhtlog.h
index 36c81181b..ce3accb79 100644
--- a/src/dht/dhtlog.h
+++ b/src/dht/dhtlog.h
@@ -156,7 +156,7 @@ struct GNUNET_DHTLOG_Handle
156 * 156 *
157 * @return GNUNET_OK on success, GNUNET_SYSERR on failure 157 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
158 */ 158 */
159 int (*insert_extended_topology) (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second); 159 int (*insert_extended_topology) (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second);
160 160
161 /* 161 /*
162 * Update dhttests.trials table with total connections information 162 * Update dhttests.trials table with total connections information
diff --git a/src/dht/plugin_dhtlog_dummy.c b/src/dht/plugin_dhtlog_dummy.c
index c90cc424b..173d77370 100644
--- a/src/dht/plugin_dhtlog_dummy.c
+++ b/src/dht/plugin_dhtlog_dummy.c
@@ -206,7 +206,7 @@ add_topology (int num_connections)
206 * @return GNUNET_OK on success, GNUNET_SYSERR on failure 206 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
207 */ 207 */
208int 208int
209add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second) 209add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
210{ 210{
211 return GNUNET_OK; 211 return GNUNET_OK;
212} 212}
diff --git a/src/dht/plugin_dhtlog_mysql.c b/src/dht/plugin_dhtlog_mysql.c
index 7798263c4..7b8c2e23f 100644
--- a/src/dht/plugin_dhtlog_mysql.c
+++ b/src/dht/plugin_dhtlog_mysql.c
@@ -575,7 +575,7 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
575 575
576 int ret; 576 int ret;
577 memset (rbind, 0, sizeof (rbind)); 577 memset (rbind, 0, sizeof (rbind));
578 rbind[0].buffer_type = MYSQL_TYPE_LONG; 578 rbind[0].buffer_type = MYSQL_TYPE_LONGLONG;
579 rbind[0].buffer = nodeuid; 579 rbind[0].buffer = nodeuid;
580 rbind[0].is_unsigned = GNUNET_YES; 580 rbind[0].is_unsigned = GNUNET_YES;
581 581
@@ -587,7 +587,7 @@ get_node_uid (unsigned long long *nodeuid, const GNUNET_HashCode * peerHash)
587 rbind, 587 rbind,
588 return_ok, 588 return_ok,
589 NULL, 589 NULL,
590 MYSQL_TYPE_LONG, 590 MYSQL_TYPE_LONGLONG,
591 &current_trial, 591 &current_trial,
592 GNUNET_YES, 592 GNUNET_YES,
593 MYSQL_TYPE_VAR_STRING, 593 MYSQL_TYPE_VAR_STRING,
@@ -1287,7 +1287,7 @@ add_topology (int num_connections)
1287 * @return GNUNET_OK on success, GNUNET_SYSERR on failure 1287 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
1288 */ 1288 */
1289int 1289int
1290add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second) 1290add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
1291{ 1291{
1292 int ret; 1292 int ret;
1293 unsigned long long first_uid; 1293 unsigned long long first_uid;
diff --git a/src/dht/plugin_dhtlog_mysql_dump.c b/src/dht/plugin_dhtlog_mysql_dump.c
index 603e592e7..da3981841 100644
--- a/src/dht/plugin_dhtlog_mysql_dump.c
+++ b/src/dht/plugin_dhtlog_mysql_dump.c
@@ -200,7 +200,7 @@ add_topology (int num_connections)
200 * @return GNUNET_OK on success, GNUNET_SYSERR on failure 200 * @return GNUNET_OK on success, GNUNET_SYSERR on failure
201 */ 201 */
202int 202int
203add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second) 203add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
204{ 204{
205 int ret; 205 int ret;
206 if (outfile == NULL) 206 if (outfile == NULL)
diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c
index eb34ae3c6..f7ee94fa4 100644
--- a/src/dht/test_dht_api.c
+++ b/src/dht/test_dht_api.c
@@ -34,7 +34,7 @@
34#include "gnunet_dht_service.h" 34#include "gnunet_dht_service.h"
35#include "gnunet_hello_lib.h" 35#include "gnunet_hello_lib.h"
36 36
37#define VERBOSE GNUNET_NO 37#define VERBOSE GNUNET_YES
38 38
39#define VERBOSE_ARM GNUNET_NO 39#define VERBOSE_ARM GNUNET_NO
40 40
@@ -306,7 +306,7 @@ test_find_peer (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
306 retry_context.peer_ctx = peer; 306 retry_context.peer_ctx = peer;
307 307
308 peer->find_peer_handle = 308 peer->find_peer_handle =
309 GNUNET_DHT_find_peer_start (peer->dht_handle, retry_context.next_timeout, 0, &hash, 309 GNUNET_DHT_find_peer_start (peer->dht_handle, retry_context.next_timeout, 1, &hash,
310 &test_find_peer_processor, &retry_context, NULL, NULL); 310 &test_find_peer_processor, &retry_context, NULL, NULL);
311 311
312 if (peer->find_peer_handle == NULL) 312 if (peer->find_peer_handle == NULL)