summaryrefslogtreecommitdiff
path: root/games/factor
diff options
context:
space:
mode:
authormestre <mestre@cvs.openbsd.org>2016-01-04 11:58:36 +0000
committermestre <mestre@cvs.openbsd.org>2016-01-04 11:58:36 +0000
commited9026dfcd232c84037ca0020e525458d0ae02f5 (patch)
tree49545bf4115bcbfcf7294d289432cfa8af8c18c9 /games/factor
parentd1517391756ff138dc7ebe533213587a4fd03d23 (diff)
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/factor')
-rw-r--r--games/factor/factor.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/games/factor/factor.c b/games/factor/factor.c
index 3cfeb8b3cd5..96d917cdd57 100644
--- a/games/factor/factor.c
+++ b/games/factor/factor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: factor.c,v 1.24 2015/12/30 14:07:53 tb Exp $ */
+/* $OpenBSD: factor.c,v 1.25 2016/01/04 11:58:35 mestre Exp $ */
/* $NetBSD: factor.c,v 1.5 1995/03/23 08:28:07 cgd Exp $ */
/*
@@ -52,11 +52,9 @@
* If no args are given, the list of numbers are read from stdin.
*/
-#include <sys/types.h>
-#include <err.h>
#include <ctype.h>
+#include <err.h>
#include <errno.h>
-#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>