move definition to util.h

This commit is contained in:
Viktor Szakats 2024-09-08 16:18:57 +02:00
parent e7751571eb
commit 5f450b558b
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
8 changed files with 2 additions and 9 deletions

View File

@ -102,7 +102,6 @@ struct configurable {
static struct configurable config;
const char *serverlogfile = DEFAULT_LOGFILE;
static const char *configfile = DEFAULT_CONFIG;
static const char *logdir = "log";
static char loglockfile[256];

View File

@ -53,8 +53,6 @@
static bool use_ipv6 = FALSE;
static const char *ipv_inuse = "IPv4";
const char *serverlogfile = ""; /* for a util.c function we don't use */
int main(int argc, char *argv[])
{
int arg = 1;

View File

@ -128,7 +128,6 @@ static void storerequest(char *reqbuf, size_t totalsize);
#define DEFAULT_LOGFILE "log/rtspd.log"
#endif
const char *serverlogfile = DEFAULT_LOGFILE;
static const char *logdir = "log";
static char loglockfile[256];

View File

@ -135,8 +135,6 @@
test 1003 which tests exceedingly large server response lines */
#define BUFFER_SIZE 17010
const char *serverlogfile = DEFAULT_LOGFILE;
static bool verbose = FALSE;
static bool bind_only = FALSE;
#ifdef USE_IPV6

View File

@ -134,7 +134,6 @@ struct configurable {
static struct configurable config;
const char *serverlogfile = DEFAULT_LOGFILE;
static const char *reqlogfile = DEFAULT_REQFILE;
static const char *configfile = DEFAULT_CONFIG;

View File

@ -135,7 +135,6 @@ static void storerequest(const char *reqbuf, size_t totalsize);
#define DEFAULT_LOGFILE "log/sws.log"
#endif
const char *serverlogfile = DEFAULT_LOGFILE;
static const char *logdir = "log";
static char loglockfile[256];

View File

@ -205,7 +205,6 @@ static bool use_ipv6 = FALSE;
#endif
static const char *ipv_inuse = "IPv4";
const char *serverlogfile = DEFAULT_LOGFILE;
static const char *logdir = "log";
static char loglockfile[256];
static const char *pidname = ".tftpd.pid";

View File

@ -62,6 +62,8 @@
#define EINVAL 22 /* errno.h value */
#endif
const char *serverlogfile = DEFAULT_LOGFILE;
static struct timeval tvnow(void);
/* This function returns a pointer to STATIC memory. It converts the given