From c56e0fd53b618aadb1a0b12ae70c1789e48b7b75 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Tue, 31 May 2011 07:44:16 -0700 Subject: [PATCH] Use const for a string pointer. * src/dispnew.c (add_window_display_history): Use const for the string pointer. Remove declaration, not needed. --- src/ChangeLog | 5 +++++ src/dispnew.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index fa8022b0d4..0bbb8ce85c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-05-31 Dan Nicolaescu + + * dispnew.c (add_window_display_history): Use const for the string + pointer. Remove declaration, not needed. + 2011-05-31 Paul Eggert Use 'inline', not 'INLINE'. diff --git a/src/dispnew.c b/src/dispnew.c index cd20bd6e9a..e98afbc9c3 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -290,7 +290,6 @@ static int history_idx; static unsigned history_tick; static void add_frame_display_history (struct frame *, int); -static void add_window_display_history (struct window *, char *, int); /* Add to the redisplay history how window W has been displayed. MSG is a trace containing the information how W's glyph matrix @@ -298,7 +297,7 @@ static void add_window_display_history (struct window *, char *, int); has been interrupted for pending input. */ static void -add_window_display_history (struct window *w, char *msg, int paused_p) +add_window_display_history (struct window *w, const char *msg, int paused_p) { char *buf; @@ -6235,9 +6234,6 @@ init_display (void) } if (!inhibit_window_system && display_arg -#ifndef CANNOT_DUMP - && initialized -#endif ) { Vinitial_window_system = Qx; -- 2.20.1