diff options
author | dholland <dholland@NetBSD.org> | 2009-08-12 08:21:41 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-12 08:21:41 +0000 |
commit | 4fa17c6f9afc7c76d0350d5d9e5996391aa18137 (patch) | |
tree | df25abab941a9c4156963af474b6ba2a96023025 /primes | |
parent | 8916e2056e90ba2c157dfd2b98fb48837d565646 (diff) | |
download | bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.gz bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.tar.zst bsdgames-darwin-4fa17c6f9afc7c76d0350d5d9e5996391aa18137.zip |
sprinkle static
Diffstat (limited to 'primes')
-rw-r--r-- | primes/primes.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/primes/primes.c b/primes/primes.c index c1ff52cc..60b65904 100644 --- a/primes/primes.c +++ b/primes/primes.c @@ -1,4 +1,4 @@ -/* $NetBSD: primes.c,v 1.16 2008/07/20 01:03:22 lukem Exp $ */ +/* $NetBSD: primes.c,v 1.17 2009/08/12 08:25:27 dholland Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95"; #else -__RCSID("$NetBSD: primes.c,v 1.16 2008/07/20 01:03:22 lukem Exp $"); +__RCSID("$NetBSD: primes.c,v 1.17 2009/08/12 08:25:27 dholland Exp $"); #endif #endif /* not lint */ @@ -84,7 +84,7 @@ __RCSID("$NetBSD: primes.c,v 1.16 2008/07/20 01:03:22 lukem Exp $"); * * We make TABSIZE large to reduce the overhead of inner loop setup. */ -char table[TABSIZE]; /* Eratosthenes sieve of odd numbers */ +static char table[TABSIZE]; /* Eratosthenes sieve of odd numbers */ /* * prime[i] is the (i-1)th prime. @@ -103,12 +103,11 @@ extern const ubig *pr_limit; /* largest prime in the prime array */ extern const char pattern[]; extern const int pattern_size; /* length of pattern array */ -int dflag; +static int dflag; -int main(int, char *[]); -void primes(ubig, ubig); -ubig read_num_buf(void); -void usage(void) __dead; +static void primes(ubig, ubig); +static ubig read_num_buf(void); +static void usage(void) __dead; int main(int argc, char *argv[]) |