diff options
author | fanf <fanf@FreeBSD.org> | 2002-10-09 19:38:55 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-10-09 19:38:55 +0000 |
commit | b5ea937ee8abc00f218c186759abaf13273b43a8 (patch) | |
tree | 3550a410f691d5a377d315fc6ddf06ffb9cd04cd /games/primes/pattern.c | |
parent | 7cc0ed53c23287ab506f8f86ebbadb958fab6ec7 (diff) | |
download | FreeBSD-src-b5ea937ee8abc00f218c186759abaf13273b43a8.zip FreeBSD-src-b5ea937ee8abc00f218c186759abaf13273b43a8.tar.gz |
Style fixes to: #include ordering; use const and static; ANSI functions;
various usage synopses; bogus and/or unnecessary casting; exit values;
use LINE_MAX instead of magic numbers; declare extern variables in a
header; add $FreeBSD$ where missing.
Reviewed by: markm, obrien
Obtained from: NetBSD | fanf
Diffstat (limited to 'games/primes/pattern.c')
-rw-r--r-- | games/primes/pattern.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/games/primes/pattern.c b/games/primes/pattern.c index 1d72fb2..dff1f4d 100644 --- a/games/primes/pattern.c +++ b/games/primes/pattern.c @@ -56,7 +56,9 @@ static const char rcsid[] = #include <stddef.h> -char pattern[] = { +#include "primes.h" + +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 +445,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 }; -size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0])); +const size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0])); |