summaryrefslogtreecommitdiffstats
path: root/crypto/mem.c
diff options
context:
space:
mode:
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);