# HG changeset patch # User Glenn Morris # Date 1189061650 0 # Node ID cb0b0301bacefe236e1cd6b35b0f9bedaaf6f3cd # Parent 2397532a703a1fa560b672e0030f506936911442 (x_reply_selection_request) : Move static variable to file scope. diff -r 2397532a703a -r cb0b0301bace src/xselect.c --- 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);