diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2011-12-12 19:00:42 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2011-12-12 22:58:35 +0200 |
| commit | c1d1d93d25a7b9788535339b6e3470b702ec966e (patch) | |
| tree | 73baf1207c1805e6a758d31fe56ec98b39427254 | |
| parent | 71456edfe82706ae331557105dcac1b147b07656 (diff) | |
commands should be static
| -rw-r--r-- | config.def.h | 4 | ||||
| -rw-r--r-- | 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}}, \ @@ -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}}, \ |
