changeset 84340:cb0b0301bace

(x_reply_selection_request) <cnt>: Move static variable to file scope.
author Glenn Morris <rgm@gnu.org>
date Thu, 06 Sep 2007 06:54:10 +0000
parents 2397532a703a
children 780798882130
files src/xselect.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Thu Sep 06 06:53:59 2007 +0000
+++ b/src/xselect.c	Thu Sep 06 06:54:10 2007 +0000
@@ -691,6 +691,10 @@
    DATA and SIZE describe the data to send, already converted.
    FORMAT is the unit-size (in bits) of the data to be transmitted.  */
 
+#ifdef TRACE_SELECTION
+static int cnt;
+#endif  /* TRACE_SELECTION */
+
 static void
 x_reply_selection_request (event, format, data, size, type)
      struct input_event *event;
@@ -729,7 +733,6 @@
 
 #ifdef TRACE_SELECTION
   {
-    static int cnt;
     char *sel = XGetAtomName (display, reply.selection);
     char *tgt = XGetAtomName (display, reply.target);
     TRACE3 ("%s, target %s (%d)", sel, tgt, ++cnt);