aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2018-01-23 16:18:59 +0000
committerokan2018-01-23 16:18:59 +0000
commit7a4fca4442eeebe4a84fa5f9ad8b8e62d8f48c7c (patch)
tree2d41207d1e67ec6a4245ac9d909fb46a2cedae97
parentd2cd1c86d06be540f06d8e427d9dab5a39ae86db (diff)
downloadcwm-7a4fca4442eeebe4a84fa5f9ad8b8e62d8f48c7c.tar.gz
Fix wins comparison declaration since it's unsigned from XQueryTree().
Diffstat (limited to '')
-rw-r--r--screen.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/screen.c b/screen.c
index 5eeb827..ae3e417 100644
--- a/screen.c
+++ b/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: screen.c,v 1.84 2016/10/24 17:39:38 okan Exp $
+ * $OpenBSD: screen.c,v 1.85 2018/01/23 16:18:59 okan Exp $
*/
#include <sys/types.h>
@@ -37,7 +37,8 @@ screen_init(int which)
struct screen_ctx *sc;
Window *wins, w0, w1, active = None;
XSetWindowAttributes rootattr;
- unsigned int nwins, i;
+ unsigned int nwins, w;
+ int i;
sc = xmalloc(sizeof(*sc));
@@ -77,8 +78,8 @@ screen_init(int which)
/* Deal with existing clients. */
if (XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins)) {
- for (i = 0; i < nwins; i++)
- (void)client_init(wins[i], sc, (active == wins[i]));
+ for (w = 0; w < nwins; w++)
+ (void)client_init(wins[w], sc, (active == wins[w]));
XFree(wins);
}