From e17f36f24f707bbf4ef77ae4abb1c19c2dbb19a3 Mon Sep 17 00:00:00 2001 From: Raphael Khaiat Date: Fri, 25 Jun 2010 14:02:14 +0200 Subject: [PATCH] Change declaration place for uniformity --- src/layout.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/layout.c b/src/layout.c index a1dc488..4bf98e0 100644 --- a/src/layout.c +++ b/src/layout.c @@ -275,7 +275,7 @@ grid(int screen, Bool horizontal) Client *c; XRectangle sg = sgeo[screen]; XRectangle cgeo = {sg.x, sg.y, 0, 0}; - unsigned int i, n, cols, rows, cpcols = 0; + unsigned int i, n, temp, cols, rows, cpcols = 0; for(n = 0, c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next), ++n); CHECK(n); @@ -290,10 +290,9 @@ grid(int screen, Bool horizontal) if(!horizontal) { - unsigned int tmp; - tmp = cols; + temp = cols; cols = rows; - rows = tmp; + rows = temp; } for(i = 0, c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next), ++i)