(atexit): Cast malloc and realloc calls.

From-SVN: r14077
This commit is contained in:
Richard Kenner 1997-05-18 07:26:38 -04:00
parent 499df3393d
commit a25cea96d7
1 changed files with 4 additions and 3 deletions

View File

@ -3032,10 +3032,11 @@ int atexit (func_ptr func)
{
atexit_chain_length += 32;
if (atexit_chain)
atexit_chain = realloc (atexit_chain,
atexit_chain_length * sizeof (func_ptr));
atexit_chain = (func_ptr *) realloc (atexit_chain, atexit_chain_length
* sizeof (func_ptr));
else
atexit_chain = malloc (atexit_chain_length * sizeof (func_ptr));
atexit_chain = (func_ptr *) malloc (atexit_chain_length
* sizeof (func_ptr));
if (! atexit_chain)
{
atexit_chain_length = 0;