gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: NAMESTORE: Fix test warnings


From: gnunet
Subject: [gnunet] branch master updated: NAMESTORE: Fix test warnings
Date: Wed, 08 Nov 2023 17:35:29 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 061360e56 NAMESTORE: Fix test warnings
061360e56 is described below

commit 061360e5601ccc071afa443a2207f124f225955d
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Nov 8 17:35:25 2023 +0100

    NAMESTORE: Fix test warnings
---
 src/plugin/namestore/test_plugin_namestore.c                        | 4 ++--
 src/service/namestore/perf_namestore_api_import.c                   | 2 +-
 src/service/namestore/perf_namestore_api_zone_iteration.c           | 2 +-
 src/service/namestore/test_namestore_api_edit_records.c             | 2 +-
 src/service/namestore/test_namestore_api_lookup_nick.c              | 2 +-
 src/service/namestore/test_namestore_api_monitoring.c               | 2 +-
 src/service/namestore/test_namestore_api_monitoring_existing.c      | 2 +-
 src/service/namestore/test_namestore_api_remove.c                   | 2 +-
 .../namestore/test_namestore_api_remove_not_existing_record.c       | 2 +-
 src/service/namestore/test_namestore_api_store.c                    | 2 +-
 src/service/namestore/test_namestore_api_store_update.c             | 6 ++----
 src/service/namestore/test_namestore_api_tx_rollback.c              | 2 +-
 src/service/namestore/test_namestore_api_zone_iteration.c           | 2 +-
 src/service/namestore/test_namestore_api_zone_iteration_nick.c      | 2 +-
 .../namestore/test_namestore_api_zone_iteration_specific_zone.c     | 2 +-
 src/service/namestore/test_namestore_api_zone_iteration_stop.c      | 2 +-
 src/service/namestore/test_namestore_api_zone_to_name.c             | 2 +-
 17 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/src/plugin/namestore/test_plugin_namestore.c 
b/src/plugin/namestore/test_plugin_namestore.c
index d471253ca..d90651255 100644
--- a/src/plugin/namestore/test_plugin_namestore.c
+++ b/src/plugin/namestore/test_plugin_namestore.c
@@ -35,7 +35,7 @@ static int ok;
  */
 static const char *plugin_name;
 
-
+#ifndef DARWIN // #5582
 /**
  * Function called when the service shuts down.  Unloads our namestore
  * plugin.
@@ -51,7 +51,7 @@ unload_plugin (struct GNUNET_NAMESTORE_PluginFunctions *api)
   GNUNET_break (NULL == GNUNET_PLUGIN_unload (libname, api));
   GNUNET_free (libname);
 }
-
+#endif
 
 /**
  * Load the namestore plugin.
diff --git a/src/service/namestore/perf_namestore_api_import.c 
b/src/service/namestore/perf_namestore_api_import.c
index 8ffab30ea..bf8093f43 100644
--- a/src/service/namestore/perf_namestore_api_import.c
+++ b/src/service/namestore/perf_namestore_api_import.c
@@ -382,7 +382,7 @@ int
 main (int argc,
       char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG2 ("perf_namestore_api_%s.conf", plugin_name, cfg_name);
diff --git a/src/service/namestore/perf_namestore_api_zone_iteration.c 
b/src/service/namestore/perf_namestore_api_zone_iteration.c
index f96839e65..1b669fdac 100644
--- a/src/service/namestore/perf_namestore_api_zone_iteration.c
+++ b/src/service/namestore/perf_namestore_api_zone_iteration.c
@@ -354,7 +354,7 @@ int
 main (int argc,
       char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_edit_records.c 
b/src/service/namestore/test_namestore_api_edit_records.c
index a6bce7c17..94b4f4fc1 100644
--- a/src/service/namestore/test_namestore_api_edit_records.c
+++ b/src/service/namestore/test_namestore_api_edit_records.c
@@ -375,7 +375,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_lookup_nick.c 
b/src/service/namestore/test_namestore_api_lookup_nick.c
index 21fc1ef79..22734baab 100644
--- a/src/service/namestore/test_namestore_api_lookup_nick.c
+++ b/src/service/namestore/test_namestore_api_lookup_nick.c
@@ -323,7 +323,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_monitoring.c 
b/src/service/namestore/test_namestore_api_monitoring.c
index 0bcdf40c5..0b879786c 100644
--- a/src/service/namestore/test_namestore_api_monitoring.c
+++ b/src/service/namestore/test_namestore_api_monitoring.c
@@ -354,7 +354,7 @@ int
 main (int argc,
       char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_monitoring_existing.c 
b/src/service/namestore/test_namestore_api_monitoring_existing.c
index 553bbf7d1..ff7e39504 100644
--- a/src/service/namestore/test_namestore_api_monitoring_existing.c
+++ b/src/service/namestore/test_namestore_api_monitoring_existing.c
@@ -368,7 +368,7 @@ int
 main (int argc,
       char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_remove.c 
b/src/service/namestore/test_namestore_api_remove.c
index 1a4a7c867..4efdb7efa 100644
--- a/src/service/namestore/test_namestore_api_remove.c
+++ b/src/service/namestore/test_namestore_api_remove.c
@@ -195,7 +195,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git 
a/src/service/namestore/test_namestore_api_remove_not_existing_record.c 
b/src/service/namestore/test_namestore_api_remove_not_existing_record.c
index 11a69bea1..4a21b0ff9 100644
--- a/src/service/namestore/test_namestore_api_remove_not_existing_record.c
+++ b/src/service/namestore/test_namestore_api_remove_not_existing_record.c
@@ -155,7 +155,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_store.c 
b/src/service/namestore/test_namestore_api_store.c
index 22b92fbe5..e7b87c28b 100644
--- a/src/service/namestore/test_namestore_api_store.c
+++ b/src/service/namestore/test_namestore_api_store.c
@@ -148,7 +148,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_store_update.c 
b/src/service/namestore/test_namestore_api_store_update.c
index 70c97137d..f2af41841 100644
--- a/src/service/namestore/test_namestore_api_store_update.c
+++ b/src/service/namestore/test_namestore_api_store_update.c
@@ -143,7 +143,7 @@ lookup_success (void *cls,
                                            &rd_new,
                                            &put_cont,
                                            (void *) name);
-    GNUNET_free (rd_new.data);
+    GNUNET_free_nz ((void*) rd_new.data);
     update_performed = GNUNET_YES;
   }
   else
@@ -168,8 +168,6 @@ static void
 put_cont (void *cls,
           enum GNUNET_ErrorCode ec)
 {
-  struct GNUNET_HashCode derived_hash;
-
   nsqe = NULL;
   GNUNET_assert (NULL != cls);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -238,7 +236,7 @@ int
 main (int argc,
       char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_tx_rollback.c 
b/src/service/namestore/test_namestore_api_tx_rollback.c
index 4a701f60e..0c334d374 100644
--- a/src/service/namestore/test_namestore_api_tx_rollback.c
+++ b/src/service/namestore/test_namestore_api_tx_rollback.c
@@ -240,7 +240,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_zone_iteration.c 
b/src/service/namestore/test_namestore_api_zone_iteration.c
index 41854f21b..403a49a23 100644
--- a/src/service/namestore/test_namestore_api_zone_iteration.c
+++ b/src/service/namestore/test_namestore_api_zone_iteration.c
@@ -440,7 +440,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_zone_iteration_nick.c 
b/src/service/namestore/test_namestore_api_zone_iteration_nick.c
index acd97bd6e..1ca7b3559 100644
--- a/src/service/namestore/test_namestore_api_zone_iteration_nick.c
+++ b/src/service/namestore/test_namestore_api_zone_iteration_nick.c
@@ -436,7 +436,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git 
a/src/service/namestore/test_namestore_api_zone_iteration_specific_zone.c 
b/src/service/namestore/test_namestore_api_zone_iteration_specific_zone.c
index 2f7fc909b..753e550ad 100644
--- a/src/service/namestore/test_namestore_api_zone_iteration_specific_zone.c
+++ b/src/service/namestore/test_namestore_api_zone_iteration_specific_zone.c
@@ -422,7 +422,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_zone_iteration_stop.c 
b/src/service/namestore/test_namestore_api_zone_iteration_stop.c
index 0497616de..dd63837ce 100644
--- a/src/service/namestore/test_namestore_api_zone_iteration_stop.c
+++ b/src/service/namestore/test_namestore_api_zone_iteration_stop.c
@@ -424,7 +424,7 @@ run (void *cls,
 int
 main (int argc, char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   SETUP_CFG (plugin_name, cfg_name);
diff --git a/src/service/namestore/test_namestore_api_zone_to_name.c 
b/src/service/namestore/test_namestore_api_zone_to_name.c
index 83188d230..f41b41642 100644
--- a/src/service/namestore/test_namestore_api_zone_to_name.c
+++ b/src/service/namestore/test_namestore_api_zone_to_name.c
@@ -241,7 +241,7 @@ int
 main (int argc,
       char *argv[])
 {
-  const char *plugin_name;
+  char *plugin_name;
   char *cfg_name;
 
   (void) argc;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]