summaryrefslogtreecommitdiff
path: root/crypto/mem.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-04-10 10:36:19 +0000
committerBen Laurie <ben@openssl.org>1999-04-10 10:36:19 +0000
commit5a88a6eabfe4fe08cb603974a476b33b722e69a3 (patch)
tree4c0520675687b1f0226b718848deca4cbe0b44dd /crypto/mem.c
parent215c24fc8e788a8628542e26e712432bc0ec775e (diff)
downloadopenssl-new-5a88a6eabfe4fe08cb603974a476b33b722e69a3.tar.gz
Rid the world of more evil casts.
Diffstat (limited to 'crypto/mem.c')
-rw-r--r--crypto/mem.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/crypto/mem.c b/crypto/mem.c
index fc24cca642..ee115d78e6 100644
--- a/crypto/mem.c
+++ b/crypto/mem.c
@@ -172,39 +172,39 @@ void (**f)();
if (f != NULL) *f=free_locked_func;
}
-char *CRYPTO_malloc_locked(num)
+void *CRYPTO_malloc_locked(num)
int num;
{
return(malloc_locked_func(num));
}
void CRYPTO_free_locked(str)
-char *str;
+void *str;
{
free_locked_func(str);
}
-char *CRYPTO_malloc(num)
+void *CRYPTO_malloc(num)
int num;
{
return(malloc_func(num));
}
-char *CRYPTO_realloc(str,num)
-char *str;
+void *CRYPTO_realloc(str,num)
+void *str;
int num;
{
return(realloc_func(str,num));
}
void CRYPTO_free(str)
-char *str;
+void *str;
{
free_func(str);
}
static unsigned long break_order_num=0;
-char *CRYPTO_dbg_malloc(num,file,line)
+void *CRYPTO_dbg_malloc(num,file,line)
int num;
char *file;
int line;
@@ -259,7 +259,7 @@ err:
}
void CRYPTO_dbg_free(addr)
-char *addr;
+void *addr;
{
MEM m,*mp;
@@ -277,8 +277,8 @@ char *addr;
free_func(addr);
}
-char *CRYPTO_dbg_realloc(addr,num,file,line)
-char *addr;
+void *CRYPTO_dbg_realloc(addr,num,file,line)
+void *addr;
int num;
char *file;
int line;
@@ -307,8 +307,8 @@ int line;
return(ret);
}
-char *CRYPTO_remalloc(a,n)
-char *a;
+void *CRYPTO_remalloc(a,n)
+void *a;
int n;
{
if (a != NULL) Free(a);
@@ -316,8 +316,8 @@ int n;
return(a);
}
-char *CRYPTO_dbg_remalloc(a,n,file,line)
-char *a;
+void *CRYPTO_dbg_remalloc(a,n,file,line)
+void *a;
int n;
char *file;
int line;