gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 02/03: use static array


From: gnunet
Subject: [gnunet] 02/03: use static array
Date: Wed, 25 Dec 2019 13:49:49 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

commit e8879b468c885bc0312d279368a9f2b85f741d41
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 25 13:45:54 2019 +0100

    use static array
---
 src/transport/test_communicator_basic.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/transport/test_communicator_basic.c 
b/src/transport/test_communicator_basic.c
index 3ae4cf12f..a17767d07 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -54,7 +54,7 @@ GNUNET_TRANSPORT_TESTING_TransportCommunicatorHandle 
*tc_hs[NUM_PEERS];
 
 static struct GNUNET_CONFIGURATION_Handle *cfg_peers[NUM_PEERS];
 
-static char **cfg_peers_name;
+static char *cfg_peers_name[NUM_PEERS];
 
 static int ret;
 
@@ -489,8 +489,6 @@ main (int argc,
   communicator_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]);
   GNUNET_asprintf (&communicator_binary, "gnunet-communicator-%s",
                    communicator_name);
-  cfg_peers_name = GNUNET_new_array (NUM_PEERS,
-                                     char *);
   if (GNUNET_OK != GNUNET_log_setup ("test_communicator_basic",
                                      "DEBUG",
                                      "test_communicator_basic.log"))

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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