* src/keyboard.c (pending_malloc_warning): Add const to match
authorDan Nicolaescu <dann@ics.uci.edu>
Mon, 15 Nov 2010 06:18:50 +0000 (22:18 -0800)
committerDan Nicolaescu <dann@ics.uci.edu>
Mon, 15 Nov 2010 06:18:50 +0000 (22:18 -0800)
definition in alloc.c.
(Fset_input_interrupt_mode): Simplify #ifdefs.

src/ChangeLog
src/keyboard.c

index 7bfd266..bef5242 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * keyboard.c (pending_malloc_warning): Add const to match
+       definition in alloc.c.
+       (Fset_input_interrupt_mode): Simplify #ifdefs.
+
 2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>
 
        Clean up systty.h macros.
index b9931d5..017a498 100644 (file)
@@ -431,7 +431,7 @@ FILE *dribble;
 /* Nonzero if input is available.  */
 int input_pending;
 
-extern char *pending_malloc_warning;
+extern const char *pending_malloc_warning;
 
 /* Circular buffer for pre-read keyboard input.  */
 
@@ -11100,10 +11100,10 @@ See also `current-input-mode'.  */)
 #ifndef DOS_NT
       /* this causes startup screen to be restored and messes with the mouse */
       reset_all_sys_modes ();
-#endif
       interrupt_input = new_interrupt_input;
-#ifndef DOS_NT
       init_all_sys_modes ();
+#else
+      interrupt_input = new_interrupt_input;
 #endif
 
 #ifdef POLL_FOR_INPUT