aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore-fcfsd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-30 16:22:47 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-30 16:22:47 +0200
commit4b5c6cceb0284774a161d426b606f40644abfb4c (patch)
treef2f63b8df7e6bb329ef25eca97e27d4deac55b69 /src/namestore/gnunet-namestore-fcfsd.c
parentc66809401efc16f2606db7e2c7b7ca8def8be14e (diff)
downloadgnunet-4b5c6cceb0284774a161d426b606f40644abfb4c.tar.gz
gnunet-4b5c6cceb0284774a161d426b606f40644abfb4c.zip
eliminate use of OFFSET in namestore DB queries
Diffstat (limited to 'src/namestore/gnunet-namestore-fcfsd.c')
-rw-r--r--src/namestore/gnunet-namestore-fcfsd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c
index 6e45f8227..903253b1a 100644
--- a/src/namestore/gnunet-namestore-fcfsd.c
+++ b/src/namestore/gnunet-namestore-fcfsd.c
@@ -324,6 +324,7 @@ iterate_cb (void *cls,
324 char* pkey; 324 char* pkey;
325 char* new_buf; 325 char* new_buf;
326 326
327 (void) zone_key;
327 if (1 != rd_len) 328 if (1 != rd_len)
328 { 329 {
329 GNUNET_NAMESTORE_zone_iterator_next (zr->list_it, 330 GNUNET_NAMESTORE_zone_iterator_next (zr->list_it,
@@ -439,6 +440,7 @@ fill_s_reply (const char *info,
439 char *reply; 440 char *reply;
440 struct MHD_Response *response; 441 struct MHD_Response *response;
441 442
443 (void) request;
442 GNUNET_asprintf (&reply, 444 GNUNET_asprintf (&reply,
443 SUBMIT_PAGE, 445 SUBMIT_PAGE,
444 info, 446 info,
@@ -587,6 +589,8 @@ zone_to_name_cb (void *cls,
587 struct Request *request = cls; 589 struct Request *request = cls;
588 struct GNUNET_GNSRECORD_Data r; 590 struct GNUNET_GNSRECORD_Data r;
589 591
592 (void) rd;
593 (void) zone_key;
590 request->qe = NULL; 594 request->qe = NULL;
591 if (0 != rd_count) 595 if (0 != rd_count)
592 { 596 {
@@ -644,6 +648,9 @@ lookup_block_processor (void *cls,
644{ 648{
645 struct Request *request = cls; 649 struct Request *request = cls;
646 650
651 (void) label;
652 (void) rd;
653 (void) zone;
647 request->qe = NULL; 654 request->qe = NULL;
648 if (0 == rd_count) 655 if (0 == rd_count)
649 { 656 {
@@ -715,6 +722,8 @@ create_response (void *cls,
715 struct GNUNET_CRYPTO_EcdsaPublicKey pub; 722 struct GNUNET_CRYPTO_EcdsaPublicKey pub;
716 int ret; 723 int ret;
717 724
725 (void) cls;
726 (void) version;
718 if ( (0 == strcmp (method, MHD_HTTP_METHOD_GET)) || 727 if ( (0 == strcmp (method, MHD_HTTP_METHOD_GET)) ||
719 (0 == strcmp (method, MHD_HTTP_METHOD_HEAD)) ) 728 (0 == strcmp (method, MHD_HTTP_METHOD_HEAD)) )
720 { 729 {