summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-03-10 06:21:02 +0000
committerache <ache@FreeBSD.org>1997-03-10 06:21:02 +0000
commite9a946ef3e52bd9c9c968940ae4a993e2cd7a849 (patch)
treead0d3c73eb25fe16720dc3a1ca151efd67333cdd /usr.sbin/ppp/command.c
parent262892c2126df28ecea5580fc62c8f6db8dbe89a (diff)
downloadFreeBSD-src-e9a946ef3e52bd9c9c968940ae4a993e2cd7a849.zip
FreeBSD-src-e9a946ef3e52bd9c9c968940ae4a993e2cd7a849.tar.gz
Don't waste time scanning tun_in+10 descriptors, scan exactly what
we need now. Don't assume that file descriptor can't be 0 (many places) Protect FD_* macros from being used with negative descriptors Shorten MS EXT show help to fit 80 cols
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index a1589da..c15d94d 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id$
+ * $Id: command.c,v 1.32 1997/02/22 16:10:08 peter Exp $
*
*/
#include <sys/types.h>
@@ -145,7 +145,6 @@ char **argv;
modem = OpenModem(mode);
if (modem < 0) {
printf("failed to open modem.\n");
- modem = 0;
break;
}
if (DialModem()) {
@@ -440,7 +439,7 @@ struct cmdtab const ShowCommands[] = {
"Show Redial timeout value", StrNull},
#ifdef MSEXT
{ "msext", NULL, ShowMSExt, LOCAL_AUTH,
- "Show MS PPP extention values", StrNull},
+ "Show MS PPP extentions", StrNull},
#endif /* MSEXT */
{ "version", NULL, ShowVersion, LOCAL_NO_AUTH | LOCAL_AUTH,
"Show version string", StrNull},
@@ -575,7 +574,6 @@ TerminalCommand()
modem = OpenModem(mode);
if (modem < 0) {
printf("failed to open modem.\n");
- modem = 0;
return(1);
}
printf("Enter to terminal mode.\n");
OpenPOWER on IntegriCloud