mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-31 00:23:50 +00:00
Move 'serverMode' flag from server.c to log.c
Because log.c and conf.c now depend on serverMode
This commit is contained in:
parent
edd245fa81
commit
a5d3c16928
1
log.c
1
log.c
@ -42,6 +42,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include "strbuf.h"
|
||||
#include "strbuf_helpers.h"
|
||||
|
||||
int serverMode = 0;
|
||||
const struct __sourceloc __whence = __NOWHERE__;
|
||||
|
||||
static FILE *logfile = NULL;
|
||||
|
2
log.h
2
log.h
@ -84,6 +84,8 @@ struct __sourceloc {
|
||||
|
||||
extern const struct __sourceloc __whence; // see above
|
||||
|
||||
extern int serverMode;
|
||||
|
||||
void set_logging(FILE *f);
|
||||
FILE *open_logging();
|
||||
void close_logging();
|
||||
|
1
serval.h
1
serval.h
@ -170,7 +170,6 @@ void serval_setinstancepath(const char *instancepath);
|
||||
|
||||
#define SERVER_CONFIG_RELOAD_INTERVAL_MS 1000
|
||||
|
||||
extern int serverMode;
|
||||
extern int servalShutdown;
|
||||
|
||||
extern char *gatewayspec;
|
||||
|
Loading…
x
Reference in New Issue
Block a user