diff options
author | oga <oga> | 2009-01-11 21:46:48 +0000 |
---|---|---|
committer | oga <oga> | 2009-01-11 21:46:48 +0000 |
commit | d1050afb6001ef6134b816b21867466195153ecb (patch) | |
tree | c842d242d3dcfb4144c9594ae96926a29d76614a /calmwm.h | |
parent | dcfae161a2a0d58ece35336c0749079fcbf77097 (diff) | |
download | cwm-d1050afb6001ef6134b816b21867466195153ecb.tar.gz cwm-d1050afb6001ef6134b816b21867466195153ecb.tar.xz cwm-d1050afb6001ef6134b816b21867466195153ecb.zip |
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.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/calmwm.h b/calmwm.h index 9726cbc..ab9c72c 100644 --- a/calmwm.h +++ b/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; |