From c1d1d93d25a7b9788535339b6e3470b702ec966e Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Mon, 12 Dec 2011 19:00:42 +0200 Subject: commands should be static --- config.def.h | 4 ++-- config.h | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config.def.h b/config.def.h index 9d59b74..f04e1a8 100644 --- a/config.def.h +++ b/config.def.h @@ -46,8 +46,8 @@ static const AppRule rules[] = { \ }; /** commands **/ -const char *termcmd[] = { "xterm", NULL }; -const char *dmenucmd[] = { "dmenu", NULL }; +static const char *termcmd[] = { "xterm", NULL }; +static const char *dmenucmd[] = { "dmenu", NULL }; #define DESKTOPCHANGE(K,N) \ { MOD1, K, change_desktop, {.i = N}}, \ diff --git a/config.h b/config.h index 8fdd992..eebe473 100644 --- a/config.h +++ b/config.h @@ -45,20 +45,20 @@ static const AppRule rules[] = { \ }; /** commands **/ -const char *termcmd[] = { "urxvt", NULL }; -const char *dmenucmd[] = { "dmn", NULL }; -const char *urxvtcmd[] = { "urxvtdc", NULL }; -const char *chromiumcmd[] = { "chromium", NULL }; +static const char *termcmd[] = { "urxvt", NULL }; +static const char *dmenucmd[] = { "dmn", NULL }; +static const char *urxvtcmd[] = { "urxvtdc", NULL }; +static const char *chromiumcmd[] = { "chromium", NULL }; /* audio volume */ static const char *volupcmd[] = { "volctrl", "+2", NULL }; static const char *voldowncmd[] = { "volctrl", "-2", NULL }; static const char *voltogglecmd[] = { "volctrl", "toggle", NULL }; /* audio playback [mpd/mpc] */ -const char *mplaycmd[] = { "mpc", "play", NULL }; -const char *mstopcmd[] = { "mpc", "stop", NULL }; -const char *mnextcmd[] = { "mpc", "next", NULL }; -const char *mprevcmd[] = { "mpc", "prev", NULL }; -const char *mtogglecmd[] = { "mpc", "toggle", NULL }; +static const char *mplaycmd[] = { "mpc", "play", NULL }; +static const char *mstopcmd[] = { "mpc", "stop", NULL }; +static const char *mnextcmd[] = { "mpc", "next", NULL }; +static const char *mprevcmd[] = { "mpc", "prev", NULL }; +static const char *mtogglecmd[] = { "mpc", "toggle", NULL }; #define DESKTOPCHANGE(K,N) \ { MOD1, K, change_desktop, {.i = N}}, \ -- cgit v1.3.1