Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2756d8ee
Commit
2756d8ee
authored
Jun 09, 1993
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/alloc.c
src/alloc.c
+2
-2
No files found.
src/alloc.c
View file @
2756d8ee
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment