From 0cd0e3a5287af73bb81219ebc9548395a8945ce8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 10 Apr 2018 13:02:28 +0200 Subject: more work on gnunet-zoneimport, some bugfix in flat namestore, misc. style fixes --- src/namestore/gnunet-namestore.c | 43 ++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) (limited to 'src/namestore/gnunet-namestore.c') diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 054417ab5..2eff995e0 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -203,6 +203,7 @@ static int monitor; static void do_shutdown (void *cls) { + (void) cls; if (NULL != get_default) { GNUNET_IDENTITY_cancel (get_default); @@ -323,6 +324,7 @@ del_continuation (void *cls, int32_t success, const char *emsg) { + (void) cls; del_qe = NULL; if (GNUNET_NO == success) { @@ -348,6 +350,7 @@ del_continuation (void *cls, static void zone_iteration_finished (void *cls) { + (void) cls; list_it = NULL; test_finished (); } @@ -359,6 +362,7 @@ zone_iteration_finished (void *cls) static void zone_iteration_error_cb (void *cls) { + (void) cls; list_it = NULL; fprintf (stderr, "Error iterating over zone\n"); @@ -385,11 +389,11 @@ display_record (void *cls, { const char *typestring; char *s; - unsigned int i; const char *ets; struct GNUNET_TIME_Absolute at; struct GNUNET_TIME_Relative rt; + (void) cls; if ( (NULL != name) && (0 != strcmp (name, rname)) ) { @@ -399,7 +403,7 @@ display_record (void *cls, FPRINTF (stdout, "%s:\n", rname); - for (i=0;i