From a313800686f3c6a24feb9646f646af6bfcc0d27d Mon Sep 17 00:00:00 2001 From: Otto Modinos Date: Fri, 16 Jan 2015 23:20:14 +0200 Subject: [PATCH] move a declaration to the top of the function --- bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar.c b/bar.c index 3da875d..ccc18bd 100644 --- a/bar.c +++ b/bar.c @@ -251,6 +251,7 @@ area_shift (xcb_window_t win, const int align, int delta) bool area_add (char *str, const char *optend, char **end, monitor_t *mon, const int x, const int align, const int button) { + int i; char *trail; area_t *a; @@ -259,7 +260,6 @@ area_add (char *str, const char *optend, char **end, monitor_t *mon, const int x *end = str; /* Find most recent unclosed area. */ - int i; for (i = astack.pos - 1; i >= 0 && !astack.slot[i].active; i--) ; a = &astack.slot[i];