summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/lcp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-10 01:22:19 +0000
committerbrian <brian@FreeBSD.org>1997-05-10 01:22:19 +0000
commit82bac13560d095243e9988bfb770da73089749c1 (patch)
tree262cfd051516c08f29f6f133a950e9de9f2d42fd /usr.sbin/ppp/lcp.c
parent1da867bda76bc701006945dfbc4733f550c91c2d (diff)
downloadFreeBSD-src-82bac13560d095243e9988bfb770da73089749c1.zip
FreeBSD-src-82bac13560d095243e9988bfb770da73089749c1.tar.gz
Tidy up the code - bounds checking, return
value checking etc. Submitted by: eivind
Diffstat (limited to 'usr.sbin/ppp/lcp.c')
-rw-r--r--usr.sbin/ppp/lcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c
index 5b5a5c6..4bc0ebf 100644
--- a/usr.sbin/ppp/lcp.c
+++ b/usr.sbin/ppp/lcp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: lcp.c,v 1.13 1997/03/13 21:22:06 brian Exp $
+ * $Id: lcp.c,v 1.14 1997/05/05 23:45:15 brian Exp $
*
* TODO:
* o Validate magic number received from peer.
@@ -350,7 +350,7 @@ struct fsm *fp;
#ifdef VERBOSE
fprintf(stderr, "%s: LayerFinish\r\n", fp->name);
#endif
- Prompt(1);
+ Prompt();
LogPrintf(LOG_LCP_BIT, "%s: LayerFinish\n", fp->name);
#ifdef notdef
OsCloseLink(0);
@@ -359,7 +359,7 @@ struct fsm *fp;
#endif
NewPhase(PHASE_DEAD);
StopAllTimers();
- OsInterfaceDown(0);
+ (void)OsInterfaceDown(0);
}
static void
@@ -388,7 +388,7 @@ struct fsm *fp;
StopAllTimers();
OsLinkdown();
NewPhase(PHASE_TERMINATE);
- Prompt(1);
+ Prompt();
}
void
OpenPOWER on IntegriCloud