aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 36b197e5eac..02c6022e475 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -298,7 +298,7 @@ static EMACS_INT pure_bytes_used_non_lisp;
298/* If nonzero, this is a warning delivered by malloc and not yet 298/* If nonzero, this is a warning delivered by malloc and not yet
299 displayed. */ 299 displayed. */
300 300
301char *pending_malloc_warning; 301const char *pending_malloc_warning;
302 302
303/* Pre-computed signal argument for use when memory is exhausted. */ 303/* Pre-computed signal argument for use when memory is exhausted. */
304 304
@@ -514,7 +514,7 @@ static POINTER_TYPE *pure_alloc (size_t, int);
514/* Function malloc calls this if it finds we are near exhausting storage. */ 514/* Function malloc calls this if it finds we are near exhausting storage. */
515 515
516void 516void
517malloc_warning (char *str) 517malloc_warning (const char *str)
518{ 518{
519 pending_malloc_warning = str; 519 pending_malloc_warning = str;
520} 520}