summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_subr.c
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2009-08-23 09:55:06 +0000
committerrpaulo <rpaulo@FreeBSD.org>2009-08-23 09:55:06 +0000
commit993a28caeb1a44a0e0d2b41c7011951c229ded42 (patch)
treea54dc491e223a9ccd48c08b891accd66e84c8d50 /sys/kern/kern_subr.c
parentf6165caee47381ff12c0ca0b7642dac2b0b66f05 (diff)
downloadFreeBSD-src-993a28caeb1a44a0e0d2b41c7011951c229ded42.zip
FreeBSD-src-993a28caeb1a44a0e0d2b41c7011951c229ded42.tar.gz
Constify prime numbers.
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index ce1afd2..95ce586 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -419,9 +419,9 @@ hashdestroy(void *vhashtbl, struct malloc_type *type, u_long hashmask)
free(hashtbl, type);
}
-static int primes[] = { 1, 13, 31, 61, 127, 251, 509, 761, 1021, 1531, 2039,
- 2557, 3067, 3583, 4093, 4603, 5119, 5623, 6143, 6653,
- 7159, 7673, 8191, 12281, 16381, 24571, 32749 };
+static const int primes[] = { 1, 13, 31, 61, 127, 251, 509, 761, 1021, 1531,
+ 2039, 2557, 3067, 3583, 4093, 4603, 5119, 5623, 6143,
+ 6653, 7159, 7673, 8191, 12281, 16381, 24571, 32749 };
#define NPRIMES (sizeof(primes) / sizeof(primes[0]))
/*
OpenPOWER on IntegriCloud