changeset 111391:3a0f0f0023d2

xfns.c (x_real_positions): Fix declaration-after-statement problem.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 09 Nov 2010 15:55:52 +0200
parents d30a1f654ca5
children 132f2dfd549f 82705ee7a2ac
files src/ChangeLog src/xfns.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Nov 08 23:41:57 2010 -0800
+++ b/src/ChangeLog	Tue Nov 09 15:55:52 2010 +0200
@@ -1,3 +1,8 @@
+2010-11-09  Eli Zaretskii  <eliz@gnu.org>
+
+	* xfns.c (x_real_positions): Fix declaration-after-statement
+	problem.
+
 2010-11-05  Chong Yidong  <cyd@stupidchicken.com>
 
 	* image.c (free_image): Don't garbage the frame here, since this
--- a/src/xfns.c	Mon Nov 08 23:41:57 2010 -0800
+++ b/src/xfns.c	Tue Nov 09 15:55:52 2010 +0200
@@ -645,11 +645,10 @@
         {
           int ign;
           Window rootw;
+          long *fe = (long *)tmp_data;
 
           XGetGeometry (FRAME_X_DISPLAY (f), win,
                         &rootw, &real_x, &real_y, &ign, &ign, &ign, &ign);
-          long *fe = (long *)tmp_data;
-      
           outer_x = -fe[0];
           outer_y = -fe[2];
           real_x -= fe[0];