From a7f001c816c9390acda1c72f889fd110f8d75563 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 22 Nov 1997 03:37:54 +0000 Subject: 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). --- usr.sbin/ppp/defs.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp/defs.c') diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c index 6d2f3ed..ccfca71 100644 --- a/usr.sbin/ppp/defs.c +++ b/usr.sbin/ppp/defs.c @@ -1,5 +1,5 @@ /* - * $Id: defs.c,v 1.3 1997/11/17 00:42:38 brian Exp $ + * $Id: defs.c,v 1.4 1997/11/18 00:19:30 brian Exp $ */ #include @@ -9,13 +9,14 @@ #include #include #include +#include #include #include "defs.h" +#include "command.h" #include "mbuf.h" #include "log.h" #include "loadalias.h" -#include "command.h" #include "vars.h" int mode = MODE_INTER; @@ -45,12 +46,16 @@ GetLabel() void randinit() { +#ifdef __FreeBSD__ static int initdone; if (!initdone) { initdone = 1; srandomdev(); } +#else + srandom(time(NULL)^getpid()); +#endif } -- cgit v1.1