summaryrefslogtreecommitdiff
path: root/games/primes/pattern.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-09-25 15:52:22 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-09-25 15:52:22 +0000
commit1f392a4b5afa2c9b7442b8574263220a9400956f (patch)
tree86df7545a070242cc88b1c37212ee0954992be45 /games/primes/pattern.c
parent14e587faa87cde5eab2f480ee4d6f8e56f18a4a1 (diff)
Tidying and minor changes from or based on jsm28@cam.ac.uk's work for the
Linux bsd-games package and NetBSD. Mainly using 'const'.
Diffstat (limited to 'games/primes/pattern.c')
-rw-r--r--games/primes/pattern.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/primes/pattern.c b/games/primes/pattern.c
index a3beb53fe8b..81fb01dede0 100644
--- a/games/primes/pattern.c
+++ b/games/primes/pattern.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: pattern.c,v 1.3 1999/09/25 15:52:20 pjanzen Exp $ */
/* $NetBSD: pattern.c,v 1.3 1995/03/23 08:35:47 cgd Exp $ */
/*
@@ -40,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: pattern.c,v 1.3 1995/03/23 08:35:47 cgd Exp $";
+static char rcsid[] = "$OpenBSD: pattern.c,v 1.3 1999/09/25 15:52:20 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -56,7 +57,7 @@ static char rcsid[] = "$NetBSD: pattern.c,v 1.3 1995/03/23 08:35:47 cgd Exp $";
* with 1. All non-zero elements are factors of 3, 5, 7, 11 and 13.
*/
-char pattern[] = {
+const char pattern[] = {
1,0,0,0,0,0,0,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,0,1,1,0,0,1,0,1,1,0,0,
1,0,1,0,0,1,0,0,0,1,0,1,1,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,1,1,0,0,0,0,1,1,0,0,
1,0,0,1,0,1,0,0,1,0,0,1,1,0,0,0,0,1,1,0,1,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,1,0,1,
@@ -443,4 +444,4 @@ char pattern[] = {
0,0,1,1,0,0,0,0,1,1,0,0,1,0,1,0,0,0,0,0,0,1,0,1,1,0,1,1,0,1,0,0,0,1,0,0,1,0,1,
0,0,1,1,0,1,0,0,1,1,0,0,1,0,0,1,0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,0,0,0,0,0,0,1
};
-int pattern_size = (sizeof(pattern)/sizeof(pattern[0]));
+const int pattern_size = (sizeof(pattern)/sizeof(pattern[0]));