changeset 3581:152fd924c7bb

* alloc.c (emacs_blocked_malloc, emacs_blocked_realloc): Cast the return values of malloc and realloc, to placate compilers.
author Jim Blandy <jimb@redhat.com>
date Wed, 09 Jun 1993 03:55:55 +0000
parents 8223f1bf078f
children eb75df1104eb
files src/alloc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Tue Jun 08 22:54:46 1993 +0000
+++ b/src/alloc.c	Wed Jun 09 03:55:55 1993 +0000
@@ -234,7 +234,7 @@
 
   BLOCK_INPUT;
   __malloc_hook = old_malloc_hook;
-  value = malloc (size);
+  value = (void *) malloc (size);
   __malloc_hook = emacs_blocked_malloc;
   UNBLOCK_INPUT;
 
@@ -250,7 +250,7 @@
 
   BLOCK_INPUT;
   __realloc_hook = old_realloc_hook;
-  value = realloc (ptr, size);
+  value = (void *) realloc (ptr, size);
   __realloc_hook = emacs_blocked_realloc;
   UNBLOCK_INPUT;