Commit 2756d8ee authored by Jim Blandy's avatar Jim Blandy
Browse files

* alloc.c (emacs_blocked_malloc, emacs_blocked_realloc): Cast the

	return values of malloc and realloc, to placate compilers.
parent 536ae2dd
......@@ -234,7 +234,7 @@ emacs_blocked_malloc (size)
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 @@ emacs_blocked_realloc (ptr, size)
BLOCK_INPUT;
__realloc_hook = old_realloc_hook;
value = realloc (ptr, size);
value = (void *) realloc (ptr, size);
__realloc_hook = emacs_blocked_realloc;
UNBLOCK_INPUT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment