summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-02-03 17:30:41 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-02-03 17:30:41 +0000
commit16fc2d25d32c508c9294f8d6879cc6e798519111 (patch)
treea8f776c32630f21057660e398b9faca6928734ac
parentca36b0969a1adf4c581083fe8cb889fa4d32af15 (diff)
downloadopenssl-new-16fc2d25d32c508c9294f8d6879cc6e798519111.tar.gz
Constification.
-rw-r--r--crypto/bn/bn_print.c2
-rw-r--r--crypto/cryptlib.c2
-rw-r--r--crypto/x509v3/v3_hex.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c
index 0d942603b1..b9dbbdcb62 100644
--- a/crypto/bn/bn_print.c
+++ b/crypto/bn/bn_print.c
@@ -62,7 +62,7 @@
#include <openssl/buffer.h>
#include "bn_lcl.h"
-static const char *Hex="0123456789ABCDEF";
+static const char Hex[]="0123456789ABCDEF";
/* Must 'OPENSSL_free' the returned data */
char *BN_bn2hex(const BIGNUM *a)
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index e63bbe8dba..188342cf52 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -70,7 +70,7 @@ DECLARE_STACK_OF(CRYPTO_dynlock)
IMPLEMENT_STACK_OF(CRYPTO_dynlock)
/* real #defines in crypto.h, keep these upto date */
-static const char* lock_names[CRYPTO_NUM_LOCKS] =
+static const char* const lock_names[CRYPTO_NUM_LOCKS] =
{
"<<ERROR>>",
"err",
diff --git a/crypto/x509v3/v3_hex.c b/crypto/x509v3/v3_hex.c
index 7b810f7ed1..2a82f21e7f 100644
--- a/crypto/x509v3/v3_hex.c
+++ b/crypto/x509v3/v3_hex.c
@@ -74,7 +74,7 @@ char *hex_to_string(unsigned char *buffer, long len)
char *tmp, *q;
unsigned char *p;
int i;
- static char hexdig[] = "0123456789ABCDEF";
+ const static char hexdig[] = "0123456789ABCDEF";
if(!buffer || !len) return NULL;
if(!(tmp = OPENSSL_malloc(len * 3 + 1))) {
X509V3err(X509V3_F_HEX_TO_STRING,ERR_R_MALLOC_FAILURE);