Declare func_list const
This commit is contained in:
parent
40b4662ff8
commit
3d6f8da805
@ -32,7 +32,7 @@
|
||||
|
||||
#include "wmfs.h"
|
||||
|
||||
func_name_list_t tmp_func_list[] =
|
||||
const func_name_list_t func_list[] =
|
||||
{
|
||||
{"spawn", uicb_spawn },
|
||||
{"client_kill", uicb_client_kill },
|
||||
@ -777,10 +777,6 @@ init_conf(void)
|
||||
|
||||
}
|
||||
|
||||
/* Set func_list */
|
||||
func_list = emalloc(LEN(tmp_func_list), sizeof(func_name_list_t));
|
||||
memcpy(func_list, tmp_func_list, LEN(tmp_func_list) * sizeof(func_name_list_t));
|
||||
|
||||
conf_misc_section();
|
||||
conf_bar_section();
|
||||
conf_root_section();
|
||||
|
||||
@ -104,7 +104,6 @@ quit(void)
|
||||
IFREE(spgeo);
|
||||
IFREE(infobar);
|
||||
IFREE(keys);
|
||||
IFREE(func_list);
|
||||
IFREE(net_atom);
|
||||
|
||||
/* Clean conf alloced thing */
|
||||
|
||||
@ -469,7 +469,7 @@ Client *clients;
|
||||
Client *sel;
|
||||
|
||||
/* Other */
|
||||
func_name_list_t *func_list;
|
||||
extern const func_name_list_t func_list[];
|
||||
extern const func_name_list_t layout_list[];
|
||||
uint numlockmask;
|
||||
Systray *trayicons;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user