aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga2009-01-11 21:46:48 +0000
committeroga2009-01-11 21:46:48 +0000
commitedc845c0c4d9c326090c075d4d0614c66016c3f4 (patch)
treeb12708dd4183ce1431475a2eb05519e581d0196a /calmwm.h
parent874349cb405359c46f243fde198acf490fb86906 (diff)
downloadcwm-edc845c0c4d9c326090c075d4d0614c66016c3f4.tar.gz
shortcut_to_name should not be defined as static in a header file. Put
it in group.c where it it used most, and add an extern definition for the other users of it. Found by gcc -Wall. ok okan@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/calmwm.h b/calmwm.h
index d2048c8..c5ac95b 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.h,v 1.71 2009/01/11 21:34:22 okan Exp $
+ * $Id: calmwm.h,v 1.72 2009/01/11 21:46:48 oga Exp $
*/
#ifndef _CALMWM_H_
@@ -140,11 +140,7 @@ struct client_ctx {
TAILQ_HEAD(client_ctx_q, client_ctx);
-static char *shortcut_to_name[] = {
- "nogroup", "one", "two", "three",
- "four", "five", "six", "seven",
- "eight", "nine"
-};
+extern const char *shortcut_to_name[];
struct group_ctx {
TAILQ_ENTRY(group_ctx) entry;