From 33546a18a117496a01add9c8e250515fe8762382 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 29 Mar 2010 13:54:51 +0000 Subject: [PATCH] test case verbosity --- src/dht/dht_api.c | 6 ------ src/dht/gnunet-service-dht.c | 10 +++------- src/dht/test_dht_api.c | 4 ++-- src/dht/test_dht_api_peer1.conf | 2 +- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 25ddd19de..550322157 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c @@ -674,12 +674,6 @@ void GNUNET_DHT_route_stop (struct GNUNET_DHT_RouteHandle *fph); -void dht_get_processor (void *cls, - const struct GNUNET_MessageHeader *reply) -{ - -} - /** * Perform an asynchronous GET operation on the DHT identified. * diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c index 465ebb9f8..613f610ac 100644 --- a/src/dht/gnunet-service-dht.c +++ b/src/dht/gnunet-service-dht.c @@ -99,10 +99,6 @@ handle_dht_stop_message(void *cls, struct GNUNET_SERVER_Client * client, static struct GNUNET_SERVER_MessageHandler plugin_handlers[] = { {&handle_dht_start_message, NULL, GNUNET_MESSAGE_TYPE_DHT, 0}, {&handle_dht_stop_message, NULL, GNUNET_MESSAGE_TYPE_DHT_STOP, 0}, -/* {&handle_dht_get_stop, NULL, GNUNET_MESSAGE_TYPE_DHT_GET_STOP, 0}, - {&handle_dht_put, NULL, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, - {&handle_dht_find_peer, NULL, GNUNET_MESSAGE_TYPE_DHT_FIND_PEER, 0}, - {&handle_dht_find_peer_stop, NULL, GNUNET_MESSAGE_TYPE_DHT_FIND_PEER_STOP, 0},*/ {NULL, NULL, 0, 0} }; @@ -137,7 +133,7 @@ static int handle_dht_p2p_find_peer (void *cls, static struct GNUNET_CORE_MessageHandler core_handlers[] = { {&handle_dht_p2p_get, GNUNET_MESSAGE_TYPE_DHT_GET, 0}, {&handle_dht_p2p_put, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, - {&handle_dht_p2p_find_peer, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, + {&handle_dht_p2p_find_peer, GNUNET_MESSAGE_TYPE_DHT_FIND_PEER, 0}, {NULL, 0, 0} }; @@ -230,7 +226,7 @@ struct SendConfirmationContext struct GNUNET_CONNECTION_TransmitHandle * transmit_handle; }; -size_t send_confirmation (void *cls, +static size_t send_confirmation (void *cls, size_t size, void *buf) { struct GNUNET_DHT_StopMessage *confirmation_message = cls; @@ -464,7 +460,7 @@ run (void *cls, /** - * The main function for the dv service. + * The main function for the dht service. * * @param argc number of arguments from the command line * @param argv command line arguments diff --git a/src/dht/test_dht_api.c b/src/dht/test_dht_api.c index 78e7dcd87..dd940a6e4 100644 --- a/src/dht/test_dht_api.c +++ b/src/dht/test_dht_api.c @@ -33,9 +33,9 @@ #include "gnunet_scheduler_lib.h" #include "gnunet_dht_service.h" -#define VERBOSE GNUNET_YES +#define VERBOSE GNUNET_NO -#define VERBOSE_ARM GNUNET_YES +#define VERBOSE_ARM GNUNET_NO #define START_ARM GNUNET_YES diff --git a/src/dht/test_dht_api_peer1.conf b/src/dht/test_dht_api_peer1.conf index 1c5dced26..45a0adde2 100644 --- a/src/dht/test_dht_api_peer1.conf +++ b/src/dht/test_dht_api_peer1.conf @@ -26,7 +26,7 @@ HOSTNAME = localhost PORT = 2093 [dht] -DEBUG = YES +DEBUG = NO ALLOW_SHUTDOWN = YES ACCEPT_FROM6 = ::1; ACCEPT_FROM = 127.0.0.1; -- 2.25.1