move definition to util.h
This commit is contained in:
parent
e7751571eb
commit
5f450b558b
@ -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];
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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];
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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];
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user