diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-10 16:20:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-10 16:20:38 +0000 |
commit | 48cdb95aa2444a386a911be1a8251483d79a9935 (patch) | |
tree | b0732fa7f30d87e972ad1a587235cd8789fcde7b /cpukit/pppd/lcp.c | |
parent | 2003-04-10 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-48cdb95aa2444a386a911be1a8251483d79a9935.tar.bz2 |
2003-04-10 Joel Sherrill <joel@OARcorp.com>
PR 371/pppd
* pppd/auth.c, pppd/chat.c, pppd/demand.c, pppd/fsm.c, pppd/lcp.c,
pppd/options.c, pppd/pppd.h, pppd/rtemsmain.c, pppd/rtemspppd.c:
Change many symbols to static. There are still global symbols in
rtemspppd.h which might need to be changed or converted into member
of a structure which is dereferenced with a pointer that is managed
as a per task variable. But this patch should avoid many conflicts.
Diffstat (limited to 'cpukit/pppd/lcp.c')
-rw-r--r-- | cpukit/pppd/lcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/pppd/lcp.c b/cpukit/pppd/lcp.c index 781f5569ad..4308c86026 100644 --- a/cpukit/pppd/lcp.c +++ b/cpukit/pppd/lcp.c @@ -38,9 +38,9 @@ static const char rcsid[] = RCSID; /* * LCP-related command-line options. */ -int lcp_echo_interval = 0; /* Interval between LCP echo-requests */ -int lcp_echo_fails = 0; /* Tolerance to unanswered echo-requests */ -bool lax_recv = 0; /* accept control chars in asyncmap */ +static int lcp_echo_interval = 0; /* Interval between LCP echo-requests */ +static int lcp_echo_fails = 0; /* Tolerance to unanswered echo-requests */ +static bool lax_recv = 0; /* accept control chars in asyncmap */ static int setescape __P((char **)); @@ -335,7 +335,7 @@ lcp_close(unit, reason) { fsm *f = &lcp_fsm[unit]; - if (phase != PHASE_DEAD) + if (pppd_phase != PHASE_DEAD) new_phase(PHASE_TERMINATE); if (f->state == STOPPED && f->flags & (OPT_PASSIVE|OPT_SILENT)) { /* @@ -1063,7 +1063,7 @@ lcp_nakci(f, p, len) if (++try.numloops >= lcp_loopbackfail) { notice("Serial line is looped back."); lcp_close(f->unit, "Loopback detected"); - status = EXIT_LOOPBACK; + pppd_status = EXIT_LOOPBACK; } } else try.numloops = 0; @@ -1815,7 +1815,7 @@ void LcpLinkFailure (f) info("No response to %d echo-requests", lcp_echos_pending); notice("Serial link appears to be disconnected."); lcp_close(f->unit, "Peer not responding"); - status = EXIT_PEER_DEAD; + pppd_status = EXIT_PEER_DEAD; } } |