Declare func_list const

This commit is contained in:
Philippe Pepiot 2010-11-17 01:24:57 +01:00
parent 40b4662ff8
commit 3d6f8da805
3 changed files with 2 additions and 7 deletions

View File

@ -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();

View File

@ -104,7 +104,6 @@ quit(void)
IFREE(spgeo);
IFREE(infobar);
IFREE(keys);
IFREE(func_list);
IFREE(net_atom);
/* Clean conf alloced thing */

View File

@ -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;