Fix stupid syntax errors in previous patch.
authorKaroly Lorentey <lorentey@elte.hu>
Sat, 19 Mar 2005 20:48:17 +0000 (20:48 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sat, 19 Mar 2005 20:48:17 +0000 (20:48 +0000)
* src/xfns.c (Fx_close_connection): Remove declaration cruft.

* src/xterm.c (x_delete_frame_display): Declare i. Fix initialization of
  dpyinfo.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-313

src/xfns.c
src/xterm.c

index 2487e67..6ff6b16 100644 (file)
@@ -4046,7 +4046,6 @@ If DISPLAY is nil, that stands for the selected frame's display.  */)
      Lisp_Object display;
 {
   struct x_display_info *dpyinfo = check_x_display_info (display);
-  int i;
 
   if (dpyinfo->reference_count > 0)
     error ("Display still has frames on it");
index 36f1630..c47b52d 100644 (file)
@@ -10767,7 +10767,8 @@ static struct redisplay_interface x_redisplay_interface =
 void
 x_delete_frame_display (struct display *display)
 {
-  struct x_display_info *dpyinfo = display->display_info;
+  struct x_display_info *dpyinfo = display->display_info.x;
+  int i;
 
   BLOCK_INPUT;
   /* Free the fonts in the font table.  */