gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 76/219: socksd: Properly decorate static variables


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 76/219: socksd: Properly decorate static variables
Date: Wed, 22 May 2019 19:16:55 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 31238d5fb70b4e5557fe73aa726fe62f6443f1a3
Author: Daniel Gustafsson <address@hidden>
AuthorDate: Sun Apr 14 22:06:09 2019 +0200

    socksd: Properly decorate static variables
    
    Mark global variables static to avoid compiler warning in Clang when
    using -Wmissing-variable-declarations.
    
    Closes #3778
    Reviewed-by: Daniel Stenberg <address@hidden>
---
 tests/server/socksd.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/server/socksd.c b/tests/server/socksd.c
index 0448cdaf4..89bbb3f78 100644
--- a/tests/server/socksd.c
+++ b/tests/server/socksd.c
@@ -105,8 +105,8 @@
 #define DEFAULT_CONFIG "socksd.config"
 #endif
 
-const char *backendaddr = "127.0.0.1";
-unsigned short backendport = 0; /* default is use client's */
+static const char *backendaddr = "127.0.0.1";
+static unsigned short backendport = 0; /* default is use client's */
 
 struct configurable {
   unsigned char version; /* inital version byte in the request must match
@@ -133,10 +133,10 @@ struct configurable {
 #define CONFIG_ADDR backendaddr
 #define CONFIG_CONNECTREP 0
 
-struct configurable config;
+static struct configurable config;
 
 const char *serverlogfile = DEFAULT_LOGFILE;
-const char *configfile = DEFAULT_CONFIG;
+static const char *configfile = DEFAULT_CONFIG;
 
 #ifdef ENABLE_IPV6
 static bool use_ipv6 = FALSE;

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



reply via email to

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