diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-05-18 19:38:19 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-05-18 19:38:19 +0000 |
commit | d2528ecafc3d148cb179c41a989140b9755175dc (patch) | |
tree | 8939fd76d8124a5173cb200515f40dfdfa8e2a81 /app/cwm/calmwm.h | |
parent | 9cc5b33194abf41c9d07c9748b22d6002735e433 (diff) |
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 'app/cwm/calmwm.h')
-rw-r--r-- | app/cwm/calmwm.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h index 0d90bdebd..302daa1e4 100644 --- a/app/cwm/calmwm.h +++ b/app/cwm/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; |