summaryrefslogtreecommitdiff
path: root/src/PassivGrab.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-08 21:15:08 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-18 06:41:36 -0400
commit91f1119528b57f94d178f0cfb12efafd0c90bbc9 (patch)
treeb98c68ebf25eb4c477fa99c2548d2c8a4804a4c0 /src/PassivGrab.c
parent43a65ae23370e0f7fb427e96c6d9037d8fa1af35 (diff)
fixes cppcheck "style" warnings (mostly variable-scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/PassivGrab.c')
-rw-r--r--src/PassivGrab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PassivGrab.c b/src/PassivGrab.c
index 313d336..bece0d9 100644
--- a/src/PassivGrab.c
+++ b/src/PassivGrab.c
@@ -655,8 +655,6 @@ static void MakeGrabs(
XtPerDisplayInput pdi)
{
XtServerGrabPtr next = *passiveListPtr;
- XtServerGrabPtr grab;
- XtPerWidgetInput pwi;
/*
* make MakeGrab build a new list that has had the merge
* processing done on it. Start with an empty list
@@ -666,6 +664,9 @@ static void MakeGrabs(
*passiveListPtr = NULL;
while (next)
{
+ XtServerGrabPtr grab;
+ XtPerWidgetInput pwi;
+
grab = next;
next = grab->next;
pwi = _XtGetPerWidgetInput(grab->widget, FALSE);