diff options
author | ache <ache@FreeBSD.org> | 1996-03-08 12:34:40 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-03-08 12:34:40 +0000 |
commit | 8d299fcc23c4b89811dcad056e9db5cbaaaa5ed8 (patch) | |
tree | 095af70927afc059743a98ebc6001323862e79ef /usr.sbin/ppp | |
parent | 50e6783510dcde971fc81270d8d046349f44ccee (diff) | |
download | FreeBSD-src-8d299fcc23c4b89811dcad056e9db5cbaaaa5ed8.zip FreeBSD-src-8d299fcc23c4b89811dcad056e9db5cbaaaa5ed8.tar.gz |
Log phone as LOG_PHASE, it is valuable enough for multi-phone environment.
Add missing return when terminal mode can't be re-established due
to modem not opened.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/chat.c | 3 | ||||
-rw-r--r-- | usr.sbin/ppp/modem.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 6982f11..ca7a8b1 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -18,7 +18,7 @@ * Columbus, OH 43221 * (614)451-1883 * - * $Id: chat.c,v 1.5 1995/09/02 17:20:50 amurai Exp $ + * $Id: chat.c,v 1.6 1996/03/08 09:03:03 ache Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -160,6 +160,7 @@ int sendmode; result += strlen(phone); if ((mode & (MODE_INTER|MODE_AUTO)) == MODE_INTER) fprintf(stderr, "Phone: %s\n", phone); + LogPrintf(LOG_PHASE, "Phone: %s\n", phone); break; case 'U': bcopy(VarAuthName, result, strlen(VarAuthName)); diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 9f09e97..444c12b 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.12 1996/01/30 11:08:43 dfr Exp $ + * $Id: modem.c,v 1.13 1996/03/08 09:03:07 ache Exp $ * * TODO: */ @@ -223,6 +223,7 @@ DownConnection() printf("failed to open modem.\n"); modem = 0; TtyCommandMode(1); + return; } TtyTermMode(); } |