diff options
author | brian <brian@FreeBSD.org> | 1997-05-10 01:22:19 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-10 01:22:19 +0000 |
commit | 82bac13560d095243e9988bfb770da73089749c1 (patch) | |
tree | 262cfd051516c08f29f6f133a950e9de9f2d42fd /usr.sbin/ppp/ccp.c | |
parent | 1da867bda76bc701006945dfbc4733f550c91c2d (diff) | |
download | FreeBSD-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/ccp.c')
-rw-r--r-- | usr.sbin/ppp/ccp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index d50d367..99981fe 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id$ + * $Id: ccp.c,v 1.10 1997/02/22 16:10:03 peter Exp $ * * TODO: * o Support other compression protocols @@ -31,8 +31,6 @@ #include "pred.h" #include "cdefs.h" -extern void PutConfValue __P((void)); - struct ccpstate CcpInfo; static void CcpSendConfigReq __P((struct fsm *)); @@ -78,7 +76,7 @@ static char const *cftypes[] = { /* 20 */ "V42BIS", "BSD", }; -void +int ReportCcpStatus() { struct ccpstate *icp = &CcpInfo; @@ -89,6 +87,7 @@ ReportCcpStatus() cftypes[icp->want_proto], cftypes[icp->his_proto]); printf("Input: %ld --> %ld, Output: %ld --> %ld\n", icp->orgin, icp->compin, icp->orgout, icp->compout); + return 0; } void |