From 6c25d52276946503ddaaa3d615174917aa5013d7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 12 Aug 2025 18:51:31 +0200 Subject: [PATCH] randr: canonical `walkScreen` variable on screen list iterations When iterating screen lists, consistently use the same variable name `walkScreen` for holding current screen pointer everywhere. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/randr/randr.c b/randr/randr.c index 9d8f8ca42..30d156775 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -72,9 +72,9 @@ RRClientCallback(CallbackListPtr *list, void *closure, void *data) pRRClient->major_version = 0; pRRClient->minor_version = 0; for (i = 0; i < screenInfo.numScreens; i++) { - ScreenPtr pScreen = screenInfo.screens[i]; + ScreenPtr walkScreen = screenInfo.screens[i]; - rrScrPriv(pScreen); + rrScrPriv(walkScreen); if (pScrPriv) { pTimes[i].setTime = pScrPriv->lastSetTime;