summaryrefslogtreecommitdiff
path: root/crypto/mem.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-30 22:20:28 +0000
committerUlf Möller <ulf@openssl.org>2000-01-30 22:20:28 +0000
commit9d1a01be8f84143618fc862e1222eb714949fdc1 (patch)
treeba9639648f25c2d5104368d7e96e8b391e100cc7 /crypto/mem.c
parent74235cc9ec3123ee7f51211ea054632ca0cf7c91 (diff)
downloadopenssl-new-9d1a01be8f84143618fc862e1222eb714949fdc1.tar.gz
Source code cleanups: Use void * rather than char * in lhash,
eliminate some of the -Wcast-qual warnings (debug-ben-strict target)
Diffstat (limited to 'crypto/mem.c')
-rw-r--r--crypto/mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/mem.c b/crypto/mem.c
index 67f8d12cc0..dac3d2685c 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -159,7 +159,7 @@ void CRYPTO_get_mem_debug_functions(void (**m)(), void (**r)(), void (**f)(),voi
}
-void *CRYPTO_malloc_locked(int num, char *file, int line)
+void *CRYPTO_malloc_locked(int num, const char *file, int line)
{
char *ret = NULL;
@@ -191,7 +191,7 @@ void CRYPTO_free_locked(void *str)
free_debug_func(NULL, 1);
}
-void *CRYPTO_malloc(int num, char *file, int line)
+void *CRYPTO_malloc(int num, const char *file, int line)
{
char *ret = NULL;
@@ -211,7 +211,7 @@ void *CRYPTO_malloc(int num, char *file, int line)
return ret;
}
-void *CRYPTO_realloc(void *str, int num, char *file, int line)
+void *CRYPTO_realloc(void *str, int num, const char *file, int line)
{
char *ret = NULL;
@@ -239,7 +239,7 @@ void CRYPTO_free(void *str)
free_debug_func(NULL, 1);
}
-void *CRYPTO_remalloc(void *a, int num, char *file, int line)
+void *CRYPTO_remalloc(void *a, int num, const char *file, int line)
{
if (a != NULL) Free(a);
a=(char *)Malloc(num);