diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-05-10 01:22:19 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-05-10 01:22:19 +0000 |
commit | 274e766c998381279af6ead2d711057aa6307df9 (patch) | |
tree | 89b119a0c59bc6a2c6175d55d4c2a80fbf85c02c /usr.sbin/ppp/ccp.c | |
parent | 13743c302f3b588f6e25fce1eac449ed62fb2e4c (diff) | |
download | src-274e766c998381279af6ead2d711057aa6307df9.tar.gz src-274e766c998381279af6ead2d711057aa6307df9.zip |
Tidy up the code - bounds checking, return
value checking etc.
Submitted by: eivind
Notes
Notes:
svn path=/head/; revision=25630
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 d50d367cb350..99981fe7535f 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 |