summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-29 02:29:13 +0000
committerbrian <brian@FreeBSD.org>1997-05-29 02:29:13 +0000
commitba44f8b683fc712aaa6e6d1d27e47582779ffd67 (patch)
treef9d14336b72bbcc6d9a1b824a28795119e7acd9f /usr.sbin/ppp/main.c
parentcb12eb9f1da3c4f679d96f98608d78b490066b0a (diff)
downloadFreeBSD-src-ba44f8b683fc712aaa6e6d1d27e47582779ffd67.zip
FreeBSD-src-ba44f8b683fc712aaa6e6d1d27e47582779ffd67.tar.gz
Correct the return of DialModem()
Suggested by: kfurge <kfurge@worldnet.att.net>
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index cae2440..5cf2f4a 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.56 1997/05/24 17:32:40 brian Exp $
+ * $Id: main.c,v 1.57 1997/05/26 00:44:06 brian Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -818,7 +818,7 @@ DoLoop()
VarDialTries);
else
LogPrintf(LOG_CHAT_BIT, "Dial attempt %u\n", tries);
- if (DialModem()) {
+ if (DialModem() == EX_DONE) {
sleep(1); /* little pause to allow peer starts */
ModemTimeout();
PacketMode();
OpenPOWER on IntegriCloud