diff options
| author | Andreas Schwab | 2010-07-11 11:27:13 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2010-07-11 11:27:13 +0200 |
| commit | a8fe7202b4d4b86cdc66997dc624a367631abd51 (patch) | |
| tree | b53c886cc1a66869d5b01d79384d8241a0a5cefa /src/alloc.c | |
| parent | bb8e180f2ce13346ee082b35d557d244e73f281c (diff) | |
| download | emacs-a8fe7202b4d4b86cdc66997dc624a367631abd51.tar.gz emacs-a8fe7202b4d4b86cdc66997dc624a367631abd51.zip | |
Constify functions taking char *
* alloc.c (pending_malloc_warning, malloc_warning): Add const.
* callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
(egetenv): Likewise.
* doprnt.c (doprnt): Likewise.
* editfns.c (set_time_zone_rule, format2): Likewise.
* emacs.c (decode_env_path): Likewise.
* eval.c (signal_error, error): Likewise.
* insdel.c (replace_range_2): Likewise.
* keyboard.c (cmd_error_internal): Likewise.
* lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
* print.c (write_string, write_string_1, print_error_message):
Likewise.
* vm-limit.c (warn_function, memory_warnings): Likewise.
* xdisp.c (message1, message1_nolog, message_with_string)
(vmessage, message, message_nolog): Likewise.
* emacs.c: Remove duplicate declaration.
* keyboard.h: Likewise.
* lisp.h: Update prototypes.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
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 | ||
| 301 | char *pending_malloc_warning; | 301 | const 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 | ||
| 516 | void | 516 | void |
| 517 | malloc_warning (char *str) | 517 | malloc_warning (const char *str) |
| 518 | { | 518 | { |
| 519 | pending_malloc_warning = str; | 519 | pending_malloc_warning = str; |
| 520 | } | 520 | } |