mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-05 05:54:37 +08:00
removed unused "unsuccess" global variable
This commit is contained in:
parent
a7d7158b05
commit
ce5121e659
@ -1207,7 +1207,6 @@ np_up(unit, proto)
|
|||||||
* At this point we consider that the link has come up successfully.
|
* At this point we consider that the link has come up successfully.
|
||||||
*/
|
*/
|
||||||
status = EXIT_OK;
|
status = EXIT_OK;
|
||||||
unsuccess = 0;
|
|
||||||
new_phase(unit, PHASE_RUNNING);
|
new_phase(unit, PHASE_RUNNING);
|
||||||
|
|
||||||
#if 0 /* UNUSED */
|
#if 0 /* UNUSED */
|
||||||
|
@ -150,7 +150,6 @@
|
|||||||
*/
|
*/
|
||||||
/* FIXME: global variables per PPP session */
|
/* FIXME: global variables per PPP session */
|
||||||
/* FIXME: clean global variables */
|
/* FIXME: clean global variables */
|
||||||
int unsuccess; /* # unsuccessful connection attempts */
|
|
||||||
int listen_time; /* time to listen first (ms) */
|
int listen_time; /* time to listen first (ms) */
|
||||||
int status; /* exit status for pppd */
|
int status; /* exit status for pppd */
|
||||||
|
|
||||||
@ -295,7 +294,6 @@ int ppp_init(void) {
|
|||||||
int i;
|
int i;
|
||||||
struct protent *protp;
|
struct protent *protp;
|
||||||
|
|
||||||
unsuccess = 0;
|
|
||||||
listen_time = 0;
|
listen_time = 0;
|
||||||
status = EXIT_OK;
|
status = EXIT_OK;
|
||||||
#if PPP_STATS_SUPPORT
|
#if PPP_STATS_SUPPORT
|
||||||
|
@ -255,7 +255,6 @@ struct epdisc {
|
|||||||
/*
|
/*
|
||||||
* Global variables.
|
* Global variables.
|
||||||
*/
|
*/
|
||||||
extern int unsuccess; /* # unsuccessful connection attempts */
|
|
||||||
extern int listen_time; /* time to listen first (ms) */
|
extern int listen_time; /* time to listen first (ms) */
|
||||||
extern int status; /* exit status for pppd */
|
extern int status; /* exit status for pppd */
|
||||||
extern int need_holdoff; /* Need holdoff period after link terminates */
|
extern int need_holdoff; /* Need holdoff period after link terminates */
|
||||||
|
@ -776,8 +776,7 @@ dump_packet(const char *tag, unsigned char *p, int len)
|
|||||||
/*
|
/*
|
||||||
* don't print LCP echo request/reply packets if the link is up.
|
* don't print LCP echo request/reply packets if the link is up.
|
||||||
*/
|
*/
|
||||||
if (unsuccess == 0 && proto == PPP_LCP
|
if (proto == PPP_LCP && len >= 2 + HEADERLEN) {
|
||||||
&& len >= 2 + HEADERLEN) {
|
|
||||||
unsigned char *lcp = p + 2;
|
unsigned char *lcp = p + 2;
|
||||||
int l = (lcp[2] << 8) + lcp[3];
|
int l = (lcp[2] << 8) + lcp[3];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user