aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga2008-05-18 19:38:18 +0000
committeroga2008-05-18 19:38:18 +0000
commite3cff8cb8136b71de61854cd658d22ee25d7e24a (patch)
tree9c8b949904650077926a8c0128861ab0725f3561 /calmwm.h
parent14d1b5fbd009e48cb5cd1b5f4bee76680646b5f5 (diff)
downloadcwm-e3cff8cb8136b71de61854cd658d22ee25d7e24a.tar.gz
group_ctx->name is only used in this one function, and for now it
corresponds directly to the static list of group names. Just use the static list and stop strdup()ing a new version for the context struct. Since that never got freed this also fixes a small memleak. Kill some unused variables while i'm here. ok okan@
Diffstat (limited to '')
-rw-r--r--calmwm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h
index 0d90bde..302daa1 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.39 2008/05/17 03:59:54 okan Exp $
+ * $Id: calmwm.h,v 1.40 2008/05/18 19:38:18 oga Exp $
*/
#ifndef _CALMWM_H_
@@ -171,7 +171,6 @@ static char *shortcut_to_name[] = {
struct group_ctx {
TAILQ_ENTRY(group_ctx) entry;
struct client_ctx_q clients;
- char *name;
int shortcut;
int hidden;
int nhidden;