diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-20 17:00:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-20 17:00:38 +0000 |
commit | 4ca43d72e1e6af22688f868463e4ccf429e3f5c9 (patch) | |
tree | f7e2b7d3c7d0a61729e6952b907273df9897f630 /cpukit/pppd/sys-rtems.c | |
parent | Cosmetics. (diff) | |
download | rtems-4ca43d72e1e6af22688f868463e4ccf429e3f5c9.tar.bz2 |
2005-01-20 Joel Sherrill <joel@OARcorp.com>
PR 736/pppd
* libnetworking/pppd/chat.c, libnetworking/pppd/demand.c,
libnetworking/pppd/pppd.h, libnetworking/pppd/rtemsmain.c,
libnetworking/pppd/sys-rtems.c, libnetworking/pppd/utils.c: ttyfd
should not be static and should have a name more specific to pppd.
Diffstat (limited to 'cpukit/pppd/sys-rtems.c')
-rw-r--r-- | cpukit/pppd/sys-rtems.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/pppd/sys-rtems.c b/cpukit/pppd/sys-rtems.c index 0fc3e139b9..f85a571aa0 100644 --- a/cpukit/pppd/sys-rtems.c +++ b/cpukit/pppd/sys-rtems.c @@ -488,7 +488,7 @@ output(unit, p, len) dbglog("sent %P", p, len); /* printf("sent packet [%d]\n", len); */ - if (write(ttyfd, p, len) < 0) { + if (write(pppd_ttyfd, p, len) < 0) { if (errno != EIO) error("write: %m"); } @@ -531,7 +531,7 @@ read_packet(buf) { int len; - if ((len = read(ttyfd, buf, PPP_MTU + PPP_HDRLEN)) < 0) { + if ((len = read(pppd_ttyfd, buf, PPP_MTU + PPP_HDRLEN)) < 0) { if (errno == EWOULDBLOCK || errno == EINTR) len = -1; /*fatal("read: %m"); */ } @@ -649,7 +649,7 @@ ccp_test(unit, opt_ptr, opt_len, for_transmit) data.ptr = opt_ptr; data.length = opt_len; data.transmit = for_transmit; - if (ioctl(ttyfd, PPPIOCSCOMPRESS, (caddr_t) &data) >= 0) + if (ioctl(pppd_ttyfd, PPPIOCSCOMPRESS, (caddr_t) &data) >= 0) return 1; return (errno == ENOBUFS)? 0: -1; } |