=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/calendar/day.c,v retrieving revision 1.20 retrieving revision 1.23 diff -u -r1.20 -r1.23 --- src/usr.bin/calendar/day.c 2005/11/16 16:45:11 1.20 +++ src/usr.bin/calendar/day.c 2010/04/28 18:20:15 1.23 @@ -1,4 +1,4 @@ -/* $OpenBSD: day.c,v 1.20 2005/11/16 16:45:11 deraadt Exp $ */ +/* $OpenBSD: day.c,v 1.23 2010/04/28 18:20:15 jsg Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -29,20 +29,6 @@ * SUCH DAMAGE. */ -#ifndef lint -static const char copyright[] = -"@(#) Copyright (c) 1989, 1993\n\ - The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint -#if 0 -static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; -#else -static const char rcsid[] = "$OpenBSD: day.c,v 1.20 2005/11/16 16:45:11 deraadt Exp $"; -#endif -#endif /* not lint */ - #include #include @@ -58,6 +44,8 @@ #include "pathnames.h" #include "calendar.h" +extern struct iovec header[]; + #define WEEKLY 1 #define MONTHLY 2 #define YEARLY 3 @@ -301,7 +289,7 @@ /* adjust bodun rate */ if (bodun && !bodun_always) - bodun = !(arc4random() % 3); + bodun = !arc4random_uniform(3); /* Easter or Easter depending days */ if (flags & F_SPECIAL)