summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-09-06 06:54:10 +0000
committerGlenn Morris <rgm@gnu.org>2007-09-06 06:54:10 +0000
commit46d47e4105b370de773cba5006c035076aabde53 (patch)
tree61ee01ea27c4bacb5932a13847229edfcc663733 /src/xselect.c
parent0b0515bce0c16523ae5675a6ee2c4878ec47c2d8 (diff)
downloademacs-46d47e4105b370de773cba5006c035076aabde53.tar.gz
(x_reply_selection_request) <cnt>: Move static variable to file scope.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c
index b2d47bd1175..cd1ad05fe26 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -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);