gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 03/03: build: fix two more warnings


From: gnunet
Subject: [gnunet] 03/03: build: fix two more warnings
Date: Tue, 24 Sep 2024 15:59:51 +0200

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

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

commit 791856a09f3b707b0aad93d0545c3d7fd1ff0dc4
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Sep 24 15:59:45 2024 +0200

    build: fix two more warnings
---
 src/cli/fs/gnunet-auto-share.c               | 4 ++--
 src/service/datacache/test_datacache_quota.c | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/cli/fs/gnunet-auto-share.c b/src/cli/fs/gnunet-auto-share.c
index fc95959cc..9660d7a69 100644
--- a/src/cli/fs/gnunet-auto-share.c
+++ b/src/cli/fs/gnunet-auto-share.c
@@ -445,7 +445,7 @@ sighandler_child_death ()
 static void
 work (void *cls)
 {
-  static char *argv[14];
+  static const char *argv[14];
   static char anon_level[20];
   static char content_prio[20];
   static char repl_level[20];
@@ -484,7 +484,7 @@ work (void *cls)
                                               NULL,
                                               NULL,
                                               "gnunet-publish",
-                                              argv);
+                                              (char * const*)argv);
   if (NULL == publish_proc)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
diff --git a/src/service/datacache/test_datacache_quota.c 
b/src/service/datacache/test_datacache_quota.c
index 6067b79fa..2cc3e9aa3 100644
--- a/src/service/datacache/test_datacache_quota.c
+++ b/src/service/datacache/test_datacache_quota.c
@@ -25,7 +25,6 @@
 #include "platform.h"
 #include "gnunet_util_lib.h"
 #include "gnunet_datacache_lib.h"
-#include "gnunet_testing_lib.h"
 
 #define ASSERT(x) do { if (! (x)) { printf ("Error at %s:%d\n", __FILE__, \
                                             __LINE__); goto FAILURE; \
@@ -156,7 +155,7 @@ main (int argc,
       char *argv[])
 {
   char cfg_name[PATH_MAX];
-  char *const xargv[] = {
+  const char *const xargv[] = {
     "test-datacache-quota",
     "-c",
     cfg_name,
@@ -177,7 +176,7 @@ main (int argc,
                    "test_datacache_data_%s.conf",
                    plugin_name);
   if (GNUNET_OK != GNUNET_PROGRAM_run ((sizeof(xargv) / sizeof(char *)) - 1,
-                                       xargv,
+                                       (char* const*)xargv,
                                        "test-datacache-quota",
                                        "nohelp",
                                        options,

-- 
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]