summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2010-04-04 17:29:42 +0200
committerJan Djärv <jan.h.d@swipnet.se>2010-04-04 17:29:42 +0200
commit6c1b5a1c01eb36ac3aab3bc44f7ac06050971ea8 (patch)
tree81a52abf009660a090c02ff29bbfcbd8af15c28d
parent3e6bec3b8cd377d078fedc514b26747e60b19ff0 (diff)
downloademacs-6c1b5a1c01eb36ac3aab3bc44f7ac06050971ea8.tar.gz
Move declaration before other statements.
-rw-r--r--src/xfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 8a0e43bcb48..a2065ac19a5 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3156,6 +3156,7 @@ set_machine_and_pid_properties (struct frame *f)
XTextProperty text;
int bytes, stringp;
int do_free_text_value = 0;
+ long pid = (long)getpid();
text.value = x_encode_text (Vsystem_name,
Qcompound_text, 0, &bytes, &stringp,
@@ -3170,7 +3171,6 @@ set_machine_and_pid_properties (struct frame *f)
if (do_free_text_value)
xfree (text.value);
- long pid = (long)getpid();
XChangeProperty (FRAME_X_DISPLAY (f),
FRAME_OUTER_WINDOW (f),
XInternAtom (FRAME_X_DISPLAY (f),