diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-31 22:21:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-31 22:21:19 +0000 |
commit | 9c858e562fd3db6da7082527708d296e8178951f (patch) | |
tree | c3f9193af9228f687164bc691922e7e6717b6375 /c/src/libnetworking/pppd/rtemsmain.c | |
parent | Remove diagnostic printf. (diff) | |
download | rtems-9c858e562fd3db6da7082527708d296e8178951f.tar.bz2 |
2005-01-31 Sergei Organov <osv@topconrd.ru>
PR 771/pppd
* libnetworking/pppd/chat.c, libnetworking/pppd/rtemsmain.c: The fix
committed to fix PR736 breaks pppd. chat.c should have its own static
ttyfd for pppd to work correctly. The symptom is that second
invokation of chat (for connect script) fails due to pppd_ttyfd set
to -1 by previous chat invokation (for init script). In addition,
this patch fixes leaving of dangling pointer in the abort_stbring[]
by chat_send().
Diffstat (limited to 'c/src/libnetworking/pppd/rtemsmain.c')
-rw-r--r-- | c/src/libnetworking/pppd/rtemsmain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/libnetworking/pppd/rtemsmain.c b/c/src/libnetworking/pppd/rtemsmain.c index eb92ae120f..4180453555 100644 --- a/c/src/libnetworking/pppd/rtemsmain.c +++ b/c/src/libnetworking/pppd/rtemsmain.c @@ -77,7 +77,7 @@ int pppifunit; /* Interface unit number */ char hostname[MAXNAMELEN]; /* Our hostname */ static char ppp_devnam[MAXPATHLEN]; /* name of PPP tty (maybe ttypx) */ -/* int pppd_ttyfd; * Serial port file descriptor */ +int pppd_ttyfd; /* Serial port file descriptor */ int baud_rate; /* Actual bits/second for serial device */ int hungup; /* terminal has been hung up */ int privileged; /* we're running as real uid root */ |