diff options
author | brian <brian@FreeBSD.org> | 1997-11-22 03:37:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-22 03:37:54 +0000 |
commit | a7f001c816c9390acda1c72f889fd110f8d75563 (patch) | |
tree | 876d508224fb0bc9435a2e3b83f73719b56ad0b6 /usr.sbin/ppp/phase.c | |
parent | 13d351d26116b6bf544f619e0de396a53d47ccd1 (diff) | |
download | FreeBSD-src-a7f001c816c9390acda1c72f889fd110f8d75563.zip FreeBSD-src-a7f001c816c9390acda1c72f889fd110f8d75563.tar.gz |
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).
Diffstat (limited to 'usr.sbin/ppp/phase.c')
-rw-r--r-- | usr.sbin/ppp/phase.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/phase.c b/usr.sbin/ppp/phase.c index 61d5698..63695f7 100644 --- a/usr.sbin/ppp/phase.c +++ b/usr.sbin/ppp/phase.c @@ -1,5 +1,5 @@ /* - * $Id: phase.c,v 1.1 1997/10/26 01:03:31 brian Exp $ + * $Id: phase.c,v 1.2 1997/10/29 01:19:50 brian Exp $ */ #include <sys/param.h> @@ -7,6 +7,7 @@ #include <stdio.h> +#include "command.h" #include "mbuf.h" #include "log.h" #include "lcp.h" @@ -20,13 +21,12 @@ #include "defs.h" #include "main.h" #include "loadalias.h" -#include "command.h" #include "vars.h" #include "phase.h" int phase = 0; /* Curent phase */ -static char *PhaseNames[] = { +static const char *PhaseNames[] = { "Dead", "Establish", "Authenticate", "Network", "Terminate" }; |