reorganized report_* variables in main.c and report.c so that they can be static
to their file; also static-alized other variables an functions in main.c
This commit is contained in:
+3
-7
@@ -14,7 +14,7 @@
|
||||
#define MAIN_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -52,10 +52,6 @@ extern char bind_addr[]; /* Do not preinit these strings as they will occupy */
|
||||
extern char configfile[]; /* a lot of space in the executable. */
|
||||
extern char user[]; /* The values will be overwritten anyway... */
|
||||
|
||||
extern int foreground_mode;
|
||||
|
||||
extern int report_level;
|
||||
|
||||
/* The drivers and their driver parameters */
|
||||
extern char *drivernames[];
|
||||
extern int num_drivers;
|
||||
@@ -63,7 +59,7 @@ extern int num_drivers;
|
||||
/* End of configuration variables */
|
||||
|
||||
/* Defines for having 'unset' values*/
|
||||
#define UNSET_INT -1
|
||||
#define UNSET_STR "\01"
|
||||
#define UNSET_INT -1
|
||||
#define UNSET_STR "\01"
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user