diff src/event-tty.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 376386a54a3c
children 727739f917cb
line wrap: on
line diff
--- a/src/event-tty.c	Mon Aug 13 09:54:24 2007 +0200
+++ b/src/event-tty.c	Mon Aug 13 09:55:28 2007 +0200
@@ -144,7 +144,7 @@
 	      if (FD_ISSET (i, &temp_mask) && FD_ISSET (i, &tty_only_mask))
 		{
 		  struct console *c = find_console_from_fd (i);
-		  
+
 		  assert (c);
 		  if (read_event_from_tty_or_stream_desc (emacs_event, c, i))
 		    return;
@@ -159,7 +159,7 @@
 		  Lisp_Object process;
 		  struct Lisp_Process *p =
 		    get_process_from_input_descriptor (i);
-		  
+
 		  assert (p);
 		  XSETPROCESS (process, p);
 		  emacs_event->event_type = process_event;
@@ -234,8 +234,7 @@
 void
 vars_of_event_tty (void)
 {
-  tty_event_stream =
-    (struct event_stream *) xmalloc (sizeof (struct event_stream));
+  tty_event_stream = xnew (struct event_stream);
 
   tty_event_stream->event_pending_p 	= emacs_tty_event_pending_p;
   tty_event_stream->next_event_cb	= emacs_tty_next_event;