# HG changeset patch # User Glenn Morris # Date 1189061701 0 # Node ID 4c7b6a25a97b1ff187e516f0e9275b5b99ba3ed7 # Parent 2da638bb2307b90e4a7b572a903fed7660c09e84 (x_reply_selection_request) : Move static variable to file scope. diff -r 2da638bb2307 -r 4c7b6a25a97b src/xselect.c --- a/src/xselect.c Thu Sep 06 06:54:48 2007 +0000 +++ b/src/xselect.c Thu Sep 06 06:55:01 2007 +0000 @@ -683,6 +683,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; @@ -721,7 +725,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);