server: make cmdfile local to sws

This commit is contained in:
Viktor Szakats 2025-02-26 17:15:43 +01:00
parent e545a06c30
commit 9684070a5c
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -46,8 +46,6 @@ extern const char *path;
/* global variable, log file name */
extern const char *serverlogfile;
extern const char *cmdfile;
#ifdef _WIN32
#include <process.h>
#include <fcntl.h>