diff options
author | brian <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
commit | 486b8925ecb0d408e403474828e20c1cce8aaec8 (patch) | |
tree | cca66974908224bf517868aaafb2e4acd1abe88d /usr.sbin/ppp/systems.c | |
parent | 1d2927c9fac7bcfe68bf6ab502c716adc91d6f09 (diff) | |
download | FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.zip FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.tar.gz |
Cosmetic (no functional changes):
o Add missing $Id$s
o Move extern decls from .c -> .h files
o Staticize
o Remove #includes from .h files
o style(9)ify includes
o bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
index -> strchr
rindex -> strrchr
o Move timeout.h -> timer.h (making it consistent w/ timer.c)
o Add -Wmissing-prototypes
Diffstat (limited to 'usr.sbin/ppp/systems.c')
-rw-r--r-- | usr.sbin/ppp/systems.c | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index b1e0d26..4eddc6f 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,23 +17,35 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: systems.c,v 1.15 1997/08/31 22:59:49 brian Exp $ + * $Id: systems.c,v 1.16 1997/09/04 00:38:21 brian Exp $ * * TODO: */ +#include <sys/param.h> +#include <netinet/in.h> + +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "mbuf.h" +#include "log.h" +#include "defs.h" +#include "timer.h" #include "fsm.h" #include "loadalias.h" -#include "vars.h" +#include "command.h" #include "ipcp.h" #include "pathnames.h" #include "vars.h" #include "server.h" -#include "command.h" - -extern void DecodeCommand(); +#include "systems.h" -static int uid, gid; -static int euid, egid; +static int uid; +static int gid; +static int euid; +static int egid; static int usermode; int @@ -220,7 +232,7 @@ LoadCommand(struct cmdtab const * list, int argc, char **argv) } int -SaveCommand(struct cmdtab const * list, int argc, char **argv) +SaveCommand(struct cmdtab const *list, int argc, char **argv) { LogPrintf(LogWARN, "save command is not implemented (yet).\n"); return 1; |