diff options
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r-- | src/dht/gnunet-service-dht.c | 10 |
1 files changed, 3 insertions, 7 deletions
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, | |||
99 | static struct GNUNET_SERVER_MessageHandler plugin_handlers[] = { | 99 | static struct GNUNET_SERVER_MessageHandler plugin_handlers[] = { |
100 | {&handle_dht_start_message, NULL, GNUNET_MESSAGE_TYPE_DHT, 0}, | 100 | {&handle_dht_start_message, NULL, GNUNET_MESSAGE_TYPE_DHT, 0}, |
101 | {&handle_dht_stop_message, NULL, GNUNET_MESSAGE_TYPE_DHT_STOP, 0}, | 101 | {&handle_dht_stop_message, NULL, GNUNET_MESSAGE_TYPE_DHT_STOP, 0}, |
102 | /* {&handle_dht_get_stop, NULL, GNUNET_MESSAGE_TYPE_DHT_GET_STOP, 0}, | ||
103 | {&handle_dht_put, NULL, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, | ||
104 | {&handle_dht_find_peer, NULL, GNUNET_MESSAGE_TYPE_DHT_FIND_PEER, 0}, | ||
105 | {&handle_dht_find_peer_stop, NULL, GNUNET_MESSAGE_TYPE_DHT_FIND_PEER_STOP, 0},*/ | ||
106 | {NULL, NULL, 0, 0} | 102 | {NULL, NULL, 0, 0} |
107 | }; | 103 | }; |
108 | 104 | ||
@@ -137,7 +133,7 @@ static int handle_dht_p2p_find_peer (void *cls, | |||
137 | static struct GNUNET_CORE_MessageHandler core_handlers[] = { | 133 | static struct GNUNET_CORE_MessageHandler core_handlers[] = { |
138 | {&handle_dht_p2p_get, GNUNET_MESSAGE_TYPE_DHT_GET, 0}, | 134 | {&handle_dht_p2p_get, GNUNET_MESSAGE_TYPE_DHT_GET, 0}, |
139 | {&handle_dht_p2p_put, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, | 135 | {&handle_dht_p2p_put, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, |
140 | {&handle_dht_p2p_find_peer, GNUNET_MESSAGE_TYPE_DHT_PUT, 0}, | 136 | {&handle_dht_p2p_find_peer, GNUNET_MESSAGE_TYPE_DHT_FIND_PEER, 0}, |
141 | {NULL, 0, 0} | 137 | {NULL, 0, 0} |
142 | }; | 138 | }; |
143 | 139 | ||
@@ -230,7 +226,7 @@ struct SendConfirmationContext | |||
230 | struct GNUNET_CONNECTION_TransmitHandle * transmit_handle; | 226 | struct GNUNET_CONNECTION_TransmitHandle * transmit_handle; |
231 | }; | 227 | }; |
232 | 228 | ||
233 | size_t send_confirmation (void *cls, | 229 | static size_t send_confirmation (void *cls, |
234 | size_t size, void *buf) | 230 | size_t size, void *buf) |
235 | { | 231 | { |
236 | struct GNUNET_DHT_StopMessage *confirmation_message = cls; | 232 | struct GNUNET_DHT_StopMessage *confirmation_message = cls; |
@@ -464,7 +460,7 @@ run (void *cls, | |||
464 | 460 | ||
465 | 461 | ||
466 | /** | 462 | /** |
467 | * The main function for the dv service. | 463 | * The main function for the dht service. |
468 | * | 464 | * |
469 | * @param argc number of arguments from the command line | 465 | * @param argc number of arguments from the command line |
470 | * @param argv command line arguments | 466 | * @param argv command line arguments |