]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/tftpd+mqttd: make variables static to silence picky warnings
authorDaniel Stenberg <daniel@haxx.se>
Fri, 4 Aug 2023 12:43:16 +0000 (14:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 6 Aug 2023 15:21:25 +0000 (17:21 +0200)
Closes #11594

tests/server/mqttd.c
tests/server/tftpd.c

index a9894b651b423ea4308e5f8c0755f157d9cf3206..e6e5cf06351d43e9113f73755ccad312391018bf 100644 (file)
@@ -119,8 +119,8 @@ static struct configurable config;
 
 const char *serverlogfile = DEFAULT_LOGFILE;
 static const char *configfile = DEFAULT_CONFIG;
-const char *logdir = "log";
-char loglockfile[256];
+static const char *logdir = "log";
+static char loglockfile[256];
 
 #ifdef ENABLE_IPV6
 static bool use_ipv6 = FALSE;
index ef45c48833698dae2234b0488805ffb25ee55040..8bcd452d047297d31732fd249406766b4ad2207d 100644 (file)
@@ -214,9 +214,9 @@ static bool use_ipv6 = FALSE;
 #endif
 static const char *ipv_inuse = "IPv4";
 
-const  char *serverlogfile = DEFAULT_LOGFILE;
-const char *logdir = "log";
-char loglockfile[256];
+const char *serverlogfile = DEFAULT_LOGFILE;
+static const char *logdir = "log";
+static char loglockfile[256];
 static const char *pidname = ".tftpd.pid";
 static const char *portname = NULL; /* none by default */
 static int serverlogslocked = 0;