commit 84d7322113c2bf023f5eaa8537fb0e72d4105046 from: NRK via: Hiltjo Posthuma date: Fri Aug 19 09:47:22 2022 UTC config.def.h: make keys and buttons const pretty much all other variables are declared as const when they're not modified. commit - 5799dd1fca6576b662d299e210cd5933b29d502d commit + 84d7322113c2bf023f5eaa8537fb0e72d4105046 blob - a2ac963acc73a1224ef8ceb47d08da454a43bce5 blob + 9efa7744b39c8b0ff0cf09a504a2539910c2881c --- config.def.h +++ config.def.h @@ -60,7 +60,7 @@ static char dmenumon[2] = "0"; /* component of dmenucm static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; -static Key keys[] = { +static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, @@ -99,7 +99,7 @@ static Key keys[] = { /* button definitions */ /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { +static const Button buttons[] = { /* click event mask button function argument */ { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },