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/tun.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/tun.c')
-rw-r--r-- | usr.sbin/ppp/tun.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c index bee63cb..73b91d0 100644 --- a/usr.sbin/ppp/tun.c +++ b/usr.sbin/ppp/tun.c @@ -1,5 +1,5 @@ /* - * $Id$ + * $Id: tun.c,v 1.2 1997/11/17 00:42:41 brian Exp $ */ #include <sys/param.h> @@ -8,7 +8,9 @@ #include <sys/socket.h> #include <netinet/in.h> #include <net/if.h> +#ifdef __FreeBSD__ #include <net/if_var.h> +#endif #include <net/if_tun.h> #include <stdio.h> @@ -16,12 +18,13 @@ #include <sys/ioctl.h> #include <sys/errno.h> +#include "command.h" +#include "mbuf.h" +#include "log.h" #include "hdlc.h" #include "defs.h" #include "loadalias.h" -#include "command.h" #include "vars.h" -#include "log.h" #include "tun.h" void |