Use const for a string pointer.
* src/dispnew.c (add_window_display_history): Use const for the string pointer. Remove declaration, not needed.
This commit is contained in:
parent
e300a61b96
commit
c56e0fd53b
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-05-31 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* dispnew.c (add_window_display_history): Use const for the string
|
||||
pointer. Remove declaration, not needed.
|
||||
|
||||
2011-05-31 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Use 'inline', not 'INLINE'.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue