moved debug option from options.c to ppp.c

This commit is contained in:
Sylvain Rochet 2012-06-09 14:42:31 +02:00
parent 6db3026d47
commit fb396b8fac
2 changed files with 7 additions and 0 deletions

View File

@ -81,11 +81,13 @@
char *strdup (char *);
#endif
#if 0
struct option_value {
struct option_value *next;
const char *source;
char value[1];
};
#endif
/*
* Option variables and default values.
@ -142,13 +144,17 @@ struct bpf_program pass_filter;/* Filter program for packets to pass */
struct bpf_program active_filter; /* Filter program for link-active pkts */
#endif
#if 0
char *current_option; /* the name of the option being parsed */
int privileged_option; /* set iff the current option came from root */
char *option_source; /* string saying where the option came from */
#endif
#if 0 /* UNUSED */
int option_priority = OPRIO_CFGFILE; /* priority of the current options */
#endif /* UNUSED */
#if 0
bool devnam_fixed; /* can no longer change device name */
#endif
#if 0 /* UNUSED */
static int logfile_fd = -1; /* fd opened for log file */

View File

@ -150,6 +150,7 @@
*/
/* FIXME: global variables per PPP session */
/* FIXME: clean global variables */
int debug = 0; /* Debug flag */
int phase; /* where the link is at */
int error_count; /* # of times error() has been called */
int unsuccess; /* # unsuccessful connection attempts */