diff options
author | Nils Larsch <nils@openssl.org> | 2005-04-05 10:29:43 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-04-05 10:29:43 +0000 |
commit | 70f34a58411014e76dd03ed6ac0b1bdb95b53b16 (patch) | |
tree | f8c42b1de09721ac83f07abd04c44f05a43465d1 /crypto/lhash/lhash.c | |
parent | c2e40d0f9a417bb5bb4d7c53ffb7d07229caffb8 (diff) | |
download | openssl-70f34a58411014e76dd03ed6ac0b1bdb95b53b16.tar.gz |
some const fixes and cleanup
Diffstat (limited to 'crypto/lhash/lhash.c')
-rw-r--r-- | crypto/lhash/lhash.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index d952b71d1d..55cb05579b 100644 --- a/crypto/lhash/lhash.c +++ b/crypto/lhash/lhash.c @@ -180,7 +180,7 @@ void *lh_insert(LHASH *lh, void *data) { unsigned long hash; LHASH_NODE *nn,**rn; - const void *ret; + void *ret; lh->error=0; if (lh->up_load <= (lh->num_items*LH_LOAD_MULT/lh->num_nodes)) @@ -211,14 +211,14 @@ void *lh_insert(LHASH *lh, void *data) (*rn)->data=data; lh->num_replace++; } - return((void *)ret); + return(ret); } void *lh_delete(LHASH *lh, const void *data) { unsigned long hash; LHASH_NODE *nn,**rn; - const void *ret; + void *ret; lh->error=0; rn=getrn(lh,data,&hash); @@ -242,14 +242,14 @@ void *lh_delete(LHASH *lh, const void *data) (lh->down_load >= (lh->num_items*LH_LOAD_MULT/lh->num_nodes))) contract(lh); - return((void *)ret); + return(ret); } void *lh_retrieve(LHASH *lh, const void *data) { unsigned long hash; LHASH_NODE **rn; - const void *ret; + void *ret; lh->error=0; rn=getrn(lh,data,&hash); @@ -264,7 +264,7 @@ void *lh_retrieve(LHASH *lh, const void *data) ret= (*rn)->data; lh->num_retrieve++; } - return((void *)ret); + return(ret); } static void doall_util_fn(LHASH *lh, int use_arg, LHASH_DOALL_FN_TYPE func, @@ -339,7 +339,7 @@ static void expand(LHASH *lh) { j=(int)lh->num_alloc_nodes*2; n=(LHASH_NODE **)OPENSSL_realloc(lh->b, - (unsigned int)sizeof(LHASH_NODE *)*j); + (int)(sizeof(LHASH_NODE *)*j)); if (n == NULL) { /* fputs("realloc error in lhash",stderr); */ |