diff options
author | oga | 2008-05-18 19:38:18 +0000 |
---|---|---|
committer | oga | 2008-05-18 19:38:18 +0000 |
commit | e3cff8cb8136b71de61854cd658d22ee25d7e24a (patch) | |
tree | 9c8b949904650077926a8c0128861ab0725f3561 /calmwm.h | |
parent | 14d1b5fbd009e48cb5cd1b5f4bee76680646b5f5 (diff) | |
download | cwm-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |