aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-service-gns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-29 10:56:15 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-29 10:56:15 +0200
commitce2864cfaa27e55096b480bf35db5f8cee2a5e7e (patch)
treebe47c017d1467870000aa1a507eab3c995304179 /src/gns/gnunet-service-gns.c
parent823215c974ccb1ef3cad9eb1082999cd1b910416 (diff)
downloadgnunet-ce2864cfaa27e55096b480bf35db5f8cee2a5e7e.tar.gz
gnunet-ce2864cfaa27e55096b480bf35db5f8cee2a5e7e.zip
add option to disable namecache, add velocity calculation and delay correction to zonemaster, fix some ftbfs from recent NAMESTORE API change
Diffstat (limited to 'src/gns/gnunet-service-gns.c')
-rw-r--r--src/gns/gnunet-service-gns.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c
index 90cd47e1d..c376ddfcc 100644
--- a/src/gns/gnunet-service-gns.c
+++ b/src/gns/gnunet-service-gns.c
@@ -229,14 +229,14 @@ GNS_get_tld (const char *name)
229/** 229/**
230 * Task run during shutdown. 230 * Task run during shutdown.
231 * 231 *
232 * @param cls unused 232 * @param cls unused, NULL
233 * @param tc unused
234 */ 233 */
235static void 234static void
236shutdown_task (void *cls) 235shutdown_task (void *cls)
237{ 236{
238 struct GNS_TopLevelDomain *tld; 237 struct GNS_TopLevelDomain *tld;
239 238
239 (void) cls;
240 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 240 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
241 "Shutting down!\n"); 241 "Shutting down!\n");
242 GNS_interceptor_done (); 242 GNS_interceptor_done ();
@@ -283,6 +283,7 @@ client_disconnect_cb (void *cls,
283 struct ClientLookupHandle *clh; 283 struct ClientLookupHandle *clh;
284 struct GnsClient *gc = app_ctx; 284 struct GnsClient *gc = app_ctx;
285 285
286 (void) cls;
286 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 287 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
287 "Client %p disconnected\n", 288 "Client %p disconnected\n",
288 client); 289 client);
@@ -314,6 +315,8 @@ client_connect_cb (void *cls,
314 struct GNUNET_MQ_Handle *mq) 315 struct GNUNET_MQ_Handle *mq)
315{ 316{
316 struct GnsClient *gc; 317 struct GnsClient *gc;
318
319 (void) cls;
317 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 320 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
318 "Client %p connected\n", 321 "Client %p connected\n",
319 client); 322 client);
@@ -383,6 +386,7 @@ check_lookup (void *cls,
383 size_t msg_size; 386 size_t msg_size;
384 const char* name; 387 const char* name;
385 388
389 (void) cls;
386 msg_size = ntohs (l_msg->header.size); 390 msg_size = ntohs (l_msg->header.size);
387 if (msg_size < sizeof (struct LookupMessage)) 391 if (msg_size < sizeof (struct LookupMessage))
388 { 392 {
@@ -479,6 +483,8 @@ read_service_conf (void *cls,
479 struct GNUNET_CRYPTO_EcdsaPublicKey pk; 483 struct GNUNET_CRYPTO_EcdsaPublicKey pk;
480 struct GNS_TopLevelDomain *tld; 484 struct GNS_TopLevelDomain *tld;
481 485
486 (void) cls;
487 (void) section;
482 if (option[0] != '.') 488 if (option[0] != '.')
483 return; 489 return;
484 if (GNUNET_OK != 490 if (GNUNET_OK !=