projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
499df33
)
(atexit): Cast malloc and realloc calls.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 18 May 1997 11:26:38 +0000
(07:26 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 18 May 1997 11:26:38 +0000
(07:26 -0400)
From-SVN: r14077
gcc/libgcc2.c
patch
|
blob
|
history
diff --git
a/gcc/libgcc2.c
b/gcc/libgcc2.c
index 09b6a15dcc691d0d90f3417547f0c4dc7955a5bb..0d53b104b6707fd277ce65732345fb48af5805ed 100644
(file)
--- a/
gcc/libgcc2.c
+++ b/
gcc/libgcc2.c
@@
-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;