diff options
author | mestre <mestre@openbsd.org> | 2016-01-04 11:58:35 +0000 |
---|---|---|
committer | mestre <mestre@openbsd.org> | 2016-01-04 11:58:35 +0000 |
commit | bdf3894f0c761055c5cbceaae3fb7c235dd3294c (patch) | |
tree | 16120d67374b771c01de29836d609dd1513003ff /games/primes | |
parent | Use err(3) instead of various handrolled combinations of perror(3) and (diff) | |
download | wireguard-openbsd-bdf3894f0c761055c5cbceaae3fb7c235dd3294c.tar.xz wireguard-openbsd-bdf3894f0c761055c5cbceaae3fb7c235dd3294c.zip |
More headers removal and sorted the remaining alphabetically.
Most noticeable that were removed are sys/types.h which will be included from
stdlib.h and in turn also brings along sys/cdefs.h. The other one is limits.h
that was used with the old idiom (denom * random() / LONG_MAX), although it was
only removed were applicable (some files still need that header).
OK tb@
Diffstat (limited to 'games/primes')
-rw-r--r-- | games/primes/pr_tbl.c | 3 | ||||
-rw-r--r-- | games/primes/primes.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/games/primes/pr_tbl.c b/games/primes/pr_tbl.c index fc0bed2aece..a46dd255934 100644 --- a/games/primes/pr_tbl.c +++ b/games/primes/pr_tbl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pr_tbl.c,v 1.5 2009/10/27 23:59:26 deraadt Exp $ */ +/* $OpenBSD: pr_tbl.c,v 1.6 2016/01/04 11:58:35 mestre Exp $ */ /* $NetBSD: pr_tbl.c,v 1.3 1995/03/23 08:35:52 cgd Exp $ */ /* @@ -45,6 +45,7 @@ */ #include <sys/types.h> + #include "primes.h" const ubig prime[] = { diff --git a/games/primes/primes.c b/games/primes/primes.c index 148ddb2359e..1867220bd6a 100644 --- a/games/primes/primes.c +++ b/games/primes/primes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: primes.c,v 1.19 2015/12/25 20:59:09 mestre Exp $ */ +/* $OpenBSD: primes.c,v 1.20 2016/01/04 11:58:35 mestre Exp $ */ /* $NetBSD: primes.c,v 1.5 1995/04/24 12:24:47 cgd Exp $ */ /* @@ -50,11 +50,9 @@ * validation check: there are 664579 primes between 0 and 10^7 */ -#include <sys/types.h> #include <ctype.h> #include <err.h> #include <errno.h> -#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> |