From 1492bd0e7d92b3c7c1ca6adfe46dab4b8c2d3fed Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 4 Sep 2007 06:22:28 +0200 Subject: Fix shadowed variables --- openbox/stacking.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbox/stacking.c') diff --git a/openbox/stacking.c b/openbox/stacking.c index 2280b877..2a0d5852 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -411,6 +411,7 @@ void stacking_add_nonintrusive(ObWindow *win) ObClient *client; GList *it_below = NULL; /* this client will be below us */ GList *it_above; + GList *wins; if (!WINDOW_IS_CLIENT(win)) { stacking_add(win); /* no special rules for others */ @@ -468,7 +469,7 @@ void stacking_add_nonintrusive(ObWindow *win) break; } - GList *wins = g_list_append(NULL, win); + wins = g_list_append(NULL, win); do_restack(wins, it_below); g_list_free(wins); } -- cgit v1.2.3 From 556eb7b7fb20b3b0db03b6d92259ad3bb16dccde Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 4 Sep 2007 06:21:22 +0200 Subject: ANSI function declarations, ie () -> (void) --- openbox/stacking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/stacking.c') diff --git a/openbox/stacking.c b/openbox/stacking.c index 2a0d5852..b23e6eac 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -29,7 +29,7 @@ GList *stacking_list = NULL; -void stacking_set_list() +void stacking_set_list(void) { Window *windows = NULL; GList *it; -- cgit v1.2.3