* draw_win_keybindings_winconf_geometry(),
* draw_win_keybindings_global()
*/
-#include "keybindings.h" /* free_keybindings(), write_keybidings_to_file(),
+#include "keybindings.h" /* write_keybidings_to_file(),
* read_keybindings_from_file()
*/
#include "misc.h" /* array_append() */
|| match_func(c, &f, 'm', draw_win_map)
|| match_func(c, &f, '0', draw_win_keybindings_global)
|| match_func(c, &f, '1', draw_win_keybindings_winconf_geometry)
- || match_func(c, &f, '2', draw_win_keybindings_winconf_keybindings));
+ || match_func(c, &f, '2', draw_win_keybindings_winconf_keybindings))
+ {
+ ;
+ }
return f;
}
/* Only resize .v_screen if the rightmost window column has changed. */
char * err_s = "refit_v_screen() grows virtual screen beyond legal sizes.";
char * err_m = "refit_v_screen() triggers memory alloc error in wresize().";
- if (getmaxx(world.winDB.v_screen) + 1 != lastwcol)
+ if ((uint32_t) getmaxx(world.winDB.v_screen) + 1 != lastwcol)
{
uint8_t t = (lastwcol + 2 > UINT16_MAX);
exit_err(t, err_s);
struct Win * next = get_win_after(w->id);
if (next)
{
- return draw_wins(next);
+ draw_wins(next);
}
}
{
struct Win * wc = get_win_by_id(id);
free(wc->title);
- free_keybindings(wc->kb.kbs);
+ free(wc->kb.kbs);
+ wc->kb.kbs = NULL;
}
free(world.winDB.ids); /* NULL this too since add_win_to_winDB() checks */
world.winDB.ids = NULL; /* for it to detect its first post-DB-purge round.*/
-extern void winch_called(int signal)
+extern void winch_called()
{
world.winch = 1;
}