summaryrefslogtreecommitdiffstats
path: root/crypto/lhash
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-04-17 21:25:43 +0000
committerBen Laurie <ben@openssl.org>1999-04-17 21:25:43 +0000
commite778802f53c8d47e96a6e4cbc776eb6e1d4c461a (patch)
tree719d4dd0fc69b355c6d8329af1f90b2c4f603548 /crypto/lhash
parentd77b3054cd87c2b13fa0169931f74b8e0dac5252 (diff)
Massive constification.
Diffstat (limited to 'crypto/lhash')
-rw-r--r--crypto/lhash/lhash.c4
-rw-r--r--crypto/lhash/lhash.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c
index 133c543c44..cd56515df7 100644
--- a/crypto/lhash/lhash.c
+++ b/crypto/lhash/lhash.c
@@ -100,7 +100,7 @@
#include "crypto.h"
#include "lhash.h"
-char *lh_version="lhash" OPENSSL_VERSION_PTEXT;
+const char *lh_version="lhash" OPENSSL_VERSION_PTEXT;
#undef MIN_NODES
#define MIN_NODES 16
@@ -476,7 +476,7 @@ char *str;
* well, not as good as MD5, but still good.
*/
unsigned long lh_strhash(c)
-char *c;
+const char *c;
{
unsigned long ret=0;
long n;
diff --git a/crypto/lhash/lhash.h b/crypto/lhash/lhash.h
index 06aad873b2..e97d39ffc5 100644
--- a/crypto/lhash/lhash.h
+++ b/crypto/lhash/lhash.h
@@ -120,7 +120,7 @@ char *lh_delete(LHASH *lh, char *data);
char *lh_retrieve(LHASH *lh, char *data);
void lh_doall(LHASH *lh, void (*func)(/* char *b */));
void lh_doall_arg(LHASH *lh, void (*func)(/*char *a,char *b*/),char *arg);
-unsigned long lh_strhash(char *c);
+unsigned long lh_strhash(const char *c);
#ifndef NO_FP_API
void lh_stats(LHASH *lh, FILE *out);