atexit: fix shadow declaration
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
542312beff
commit
139dea2987
|
@ -61,7 +61,6 @@ awesome_atexit(void)
|
||||||
{
|
{
|
||||||
client_t *c;
|
client_t *c;
|
||||||
int screen_nbr, nscreens;
|
int screen_nbr, nscreens;
|
||||||
xcb_setup_t *s;
|
|
||||||
|
|
||||||
a_dbus_cleanup();
|
a_dbus_cleanup();
|
||||||
luaA_cs_cleanup();
|
luaA_cs_cleanup();
|
||||||
|
@ -75,7 +74,8 @@ awesome_atexit(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* do this only for real screen */
|
/* do this only for real screen */
|
||||||
nscreens = ((s = xcb_get_setup(globalconf.connection)) ? xcb_setup_roots_length(s) : -1);
|
const xcb_setup_t *setup = xcb_get_setup(globalconf.connection);
|
||||||
|
nscreens = setup ? xcb_setup_roots_length(setup) : -1;
|
||||||
for(screen_nbr = 0;
|
for(screen_nbr = 0;
|
||||||
screen_nbr < nscreens;
|
screen_nbr < nscreens;
|
||||||
screen_nbr++)
|
screen_nbr++)
|
||||||
|
|
Loading…
Reference in New Issue