diff options
author | Richard Levitte <levitte@openssl.org> | 2000-12-13 17:15:03 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-12-13 17:15:03 +0000 |
commit | 8d28d5f81b81f68a69db1c67e24bcfc092614346 (patch) | |
tree | 3391f9ea36d1b9655ffd8e9065de14a5284c5556 /crypto/conf | |
parent | 53b407da84909dffb54c44dc8a1106723a23a546 (diff) |
Constification of the data of a hash table. This means the callback
functions need to be constified, and therefore meant a number of easy
changes a little everywhere.
Now, if someone could explain to me why OBJ_dup() cheats...
Diffstat (limited to 'crypto/conf')
-rw-r--r-- | crypto/conf/conf_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c index 8216e64525..bf84cecc1e 100644 --- a/crypto/conf/conf_api.c +++ b/crypto/conf/conf_api.c @@ -73,9 +73,9 @@ static void value_free_stack(CONF_VALUE *a,LHASH *conf); /* We don't use function pointer casting or wrapper functions - but cast each * callback parameter inside the callback functions. */ /* static unsigned long hash(CONF_VALUE *v); */ -static unsigned long hash(void *v_void); +static unsigned long hash(const void *v_void); /* static int cmp_conf(CONF_VALUE *a,CONF_VALUE *b); */ -static int cmp_conf(void *a_void,void *b_void); +static int cmp_conf(const void *a_void,const void *b_void); /* Up until OpenSSL 0.9.5a, this was get_section */ CONF_VALUE *_CONF_get_section(CONF *conf, char *section) @@ -239,14 +239,14 @@ static void value_free_stack(CONF_VALUE *a, LHASH *conf) } /* static unsigned long hash(CONF_VALUE *v) */ -static unsigned long hash(void *v_void) +static unsigned long hash(const void *v_void) { CONF_VALUE *v = (CONF_VALUE *)v_void; return((lh_strhash(v->section)<<2)^lh_strhash(v->name)); } /* static int cmp_conf(CONF_VALUE *a, CONF_VALUE *b) */ -static int cmp_conf(void *a_void, void *b_void) +static int cmp_conf(const void *a_void,const void *b_void) { int i; CONF_VALUE *a = (CONF_VALUE *)a_void; |