Use const for a string pointer.
authorDan Nicolaescu <dann@ics.uci.edu>
Tue, 31 May 2011 14:44:16 +0000 (07:44 -0700)
committerDan Nicolaescu <dann@ics.uci.edu>
Tue, 31 May 2011 14:44:16 +0000 (07:44 -0700)
* src/dispnew.c (add_window_display_history): Use const for the string
pointer.  Remove declaration, not needed.

src/ChangeLog
src/dispnew.c

index fa8022b..0bbb8ce 100644 (file)
@@ -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'.
index cd20bd6..e98afbc 100644 (file)
@@ -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);
 \f
 /* 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;