aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-10 15:23:55 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-11 12:04:47 +0200
commit9739c7009513fc6e72265da40ca2e488152fbda2 (patch)
tree4dc1f2c64b298a54941720fbbe7419b741ff9207 /nx-X11
parent4b19c4975d5cfb6db0428870d5bf61b8ccb0ae64 (diff)
downloadnx-libs-9739c7009513fc6e72265da40ca2e488152fbda2.tar.gz
nx-libs-9739c7009513fc6e72265da40ca2e488152fbda2.tar.bz2
nx-libs-9739c7009513fc6e72265da40ca2e488152fbda2.zip
Clipboard.c: Scope improvements
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index f3c6cb1ad..3045698ed 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -392,8 +392,6 @@ Bool nxagentValidServerTargets(Atom target)
void nxagentClearClipboard(ClientPtr pClient, WindowPtr pWindow)
{
- int i;
-
#ifdef DEBUG
fprintf(stderr, "%s: Called with client [%p] window [%p].\n", __func__,
(void *) pClient, (void *) pWindow);
@@ -405,7 +403,7 @@ void nxagentClearClipboard(ClientPtr pClient, WindowPtr pWindow)
* Only for PRIMARY and CLIPBOARD selections.
*/
- for (i = 0; i < nxagentMaxSelections; i++)
+ for (int i = 0; i < nxagentMaxSelections; i++)
{
if ((pClient != NULL && lastSelectionOwner[i].client == pClient) ||
(pWindow != NULL && lastSelectionOwner[i].windowPtr == pWindow))
@@ -1259,7 +1257,6 @@ void nxagentResetSelectionOwner(void)
void nxagentSetSelectionOwner(Selection *pSelection)
{
- int i;
#ifdef DEBUG
fprintf(stderr, "%s: Got called.\n", __func__);
#endif
@@ -1286,7 +1283,7 @@ void nxagentSetSelectionOwner(Selection *pSelection)
* Only for PRIMARY and CLIPBOARD selections.
*/
- for (i = 0; i < nxagentMaxSelections; i++)
+ for (int i = 0; i < nxagentMaxSelections; i++)
{
if (pSelection->selection == CurrentSelections[i].selection)
{