aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authoroga2009-01-11 21:46:48 +0000
committeroga2009-01-11 21:46:48 +0000
commitedc845c0c4d9c326090c075d4d0614c66016c3f4 (patch)
treeb12708dd4183ce1431475a2eb05519e581d0196a /group.c
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 'group.c')
-rw-r--r--group.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/group.c b/group.c
index 598bf94..5965c97 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: group.c,v 1.19 2008/07/18 15:40:52 oga Exp $
+ * $Id: group.c,v 1.20 2009/01/11 21:46:48 oga Exp $
*/
#include "headers.h"
@@ -29,6 +29,11 @@ struct group_ctx Groups[CALMWM_NGROUPS];
int Grouphideall = 0;
struct group_ctx_q Groupq;
+const char *shortcut_to_name[] = {
+ "nogroup", "one", "two", "three", "four", "five", "six",
+ "seven", "eight", "nine"
+};
+
static void
_group_add(struct group_ctx *gc, struct client_ctx *cc)
{