aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ccp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-11-22 03:37:54 +0000
committerBrian Somers <brian@FreeBSD.org>1997-11-22 03:37:54 +0000
commitb6e82f33ef84ba5eedb0db2e24525e9d0f661b91 (patch)
treed0d0e64820ed68529fb828bc334dc417554f37a7 /usr.sbin/ppp/ccp.c
parent9822c98d98f8dd158b97c0f89f13652f308abb45 (diff)
downloadsrc-b6e82f33ef84ba5eedb0db2e24525e9d0f661b91.tar.gz
src-b6e82f33ef84ba5eedb0db2e24525e9d0f661b91.zip
Fix prototypes.
Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
Notes
Notes: svn path=/head/; revision=31343
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r--usr.sbin/ppp/ccp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index 4f76eae9806c..6fbee99c70ce 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: ccp.c,v 1.18 1997/11/08 00:28:06 brian Exp $
+ * $Id: ccp.c,v 1.19 1997/11/14 15:39:14 brian Exp $
*
* TODO:
* o Support other compression protocols
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>
+#include "command.h"
#include "mbuf.h"
#include "log.h"
#include "defs.h"
@@ -38,7 +39,6 @@
#include "ccp.h"
#include "phase.h"
#include "loadalias.h"
-#include "command.h"
#include "vars.h"
#include "pred.h"
@@ -91,14 +91,14 @@ static char const *cftypes[] = {
"STAC", /* 17: Stac Electronics LZS */
"MSPPC", /* 18: Microsoft PPC */
"GAND", /* 19: Gandalf FZA */
- "V42BIS", /* 20: V.42bis compression */
+ "V42BIS", /* 20: ARG->DATA.42bis compression */
"BSD", /* BSD LZW Compress */
};
#define NCFTYPES (sizeof(cftypes)/sizeof(char *))
int
-ReportCcpStatus()
+ReportCcpStatus(struct cmdargs const *arg)
{
struct ccpstate *icp = &CcpInfo;
struct fsm *fp = &CcpFsm;