]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_reply_selection_request) <cnt>: Move static variable to file scope.
authorGlenn Morris <rgm@gnu.org>
Thu, 6 Sep 2007 06:54:10 +0000 (06:54 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 6 Sep 2007 06:54:10 +0000 (06:54 +0000)
src/xselect.c

index b2d47bd117542066e5c833a9f4d4f01bb1aa466f..cd1ad05fe2669fa8df0a69fce7b254ddda95ef6b 100644 (file)
@@ -691,6 +691,10 @@ some_frame_on_display (dpyinfo)
    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 @@ x_reply_selection_request (event, format, data, size, type)
 
 #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);