summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-11-07 20:34:40 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-11-07 20:34:40 +0000
commitdbf5a5de3a9b0236c52fc52715ae77413dce2fa4 (patch)
tree88fd9663afd7433e1cb06f81ed62a04676ac9589 /app/cwm/conf.c
parentc5355bd4e223ad2673aa5fa06117092df3ac2dea (diff)
get rid of the xfree() wrapper around free(); from Tiago Cunha.
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index bef35b9c5..649863588 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.c
@@ -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.
*
- * $OpenBSD: conf.c,v 1.102 2012/10/31 22:06:24 okan Exp $
+ * $OpenBSD: conf.c,v 1.103 2012/11/07 20:34:39 okan Exp $
*/
#include <sys/param.h>
@@ -202,36 +202,35 @@ conf_clear(struct conf *c)
while ((cmd = TAILQ_FIRST(&c->cmdq)) != NULL) {
TAILQ_REMOVE(&c->cmdq, cmd, entry);
- xfree(cmd);
+ free(cmd);
}
while ((kb = TAILQ_FIRST(&c->keybindingq)) != NULL) {
TAILQ_REMOVE(&c->keybindingq, kb, entry);
- xfree(kb);
+ free(kb);
}
while ((ag = TAILQ_FIRST(&c->autogroupq)) != NULL) {
TAILQ_REMOVE(&c->autogroupq, ag, entry);
- xfree(ag->class);
- if (ag->name)
- xfree(ag->name);
- xfree(ag);
+ free(ag->class);
+ free(ag->name);
+ free(ag);
}
while ((wm = TAILQ_FIRST(&c->ignoreq)) != NULL) {
TAILQ_REMOVE(&c->ignoreq, wm, entry);
- xfree(wm);
+ free(wm);
}
while ((mb = TAILQ_FIRST(&c->mousebindingq)) != NULL) {
TAILQ_REMOVE(&c->mousebindingq, mb, entry);
- xfree(mb);
+ free(mb);
}
for (i = 0; i < CWM_COLOR_MAX; i++)
- xfree(c->color[i].name);
+ free(c->color[i].name);
- xfree(c->font);
+ free(c->font);
}
void
@@ -477,7 +476,7 @@ conf_bindname(struct conf *c, char *name, char *binding)
if (current_binding->keysym == NoSymbol &&
current_binding->keycode == 0) {
- xfree(current_binding);
+ free(current_binding);
return;
}
@@ -523,7 +522,7 @@ conf_unbind(struct conf *c, struct keybinding *unbind)
key->keysym == unbind->keysym) {
conf_ungrab(c, key);
TAILQ_REMOVE(&c->keybindingq, key, entry);
- xfree(key);
+ free(key);
}
}
}
@@ -603,7 +602,7 @@ conf_mouseunbind(struct conf *c, struct mousebinding *unbind)
if (mb->button == unbind->button) {
TAILQ_REMOVE(&c->mousebindingq, mb, entry);
- xfree(mb);
+ free(mb);
}
}
}