Move primes to read-only segment.
authorAndy Polyakov <appro@openssl.org>
Wed, 16 Feb 2000 13:24:06 +0000 (13:24 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 16 Feb 2000 13:24:06 +0000 (13:24 +0000)
crypto/bn/bn_prime.h
crypto/bn/bn_prime.pl

index 8bb168517da3af06d34e2a4702490360bdecbdd1..b7cf9a9bfe124d9361686fdc8b9d4010b8f6e8fc 100644 (file)
@@ -61,7 +61,7 @@
 #else
 #define NUMPRIMES 54
 #endif
-static unsigned int primes[NUMPRIMES]=
+static const unsigned int primes[NUMPRIMES]=
        {
           2,   3,   5,   7,  11,  13,  17,  19,
          23,  29,  31,  37,  41,  43,  47,  53,
index bfe577643aa55b9c0f8f61100de9a6b65660d919..9fc376548652801d9ef0207c98ba68a95e3bba25 100644 (file)
@@ -104,7 +104,7 @@ printf "#define NUMPRIMES %d\n",$num;
 printf "#else\n";
 printf "#define NUMPRIMES %d\n",$eight;
 printf "#endif\n";
-print "static unsigned int primes[NUMPRIMES]=\n\t{\n\t";
+print "static const unsigned int primes[NUMPRIMES]=\n\t{\n\t";
 $init=0;
 for ($i=0; $i <= $#primes; $i++)
        {