From 3e4c836a020554b61fd6672809cd5ee447c4a121 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 26 Feb 2025 17:15:43 +0100 Subject: [PATCH] server: make cmdfile local to sws --- tests/server/sws.c | 2 +- tests/server/util.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/server/sws.c b/tests/server/sws.c index 8ea2b5f13e..ebd5d5ce0e 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -150,7 +150,7 @@ static char loglockfile[256]; /* file in which additional instructions may be found */ #define DEFAULT_CMDFILE "log/server.cmd" -const char *cmdfile = DEFAULT_CMDFILE; +static const char *cmdfile = DEFAULT_CMDFILE; /* very-big-path support */ #define MAXDOCNAMELEN 140000 diff --git a/tests/server/util.h b/tests/server/util.h index 105e4f73c1..212fc453da 100644 --- a/tests/server/util.h +++ b/tests/server/util.h @@ -46,8 +46,6 @@ extern const char *path; /* global variable, log file name */ extern const char *serverlogfile; -extern const char *cmdfile; - #ifdef _WIN32 #include #include