aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2012-11-07 20:34:39 +0000
committerokan2012-11-07 20:34:39 +0000
commitb43ba68cd49c5275d9a817901bc52e5ab9e1fa0f (patch)
tree84c261aa6435bed59c69a13ba6b3f0fb5fab6f2b /menu.c
parentfbbfab69fda3ae91cc59549b0a4e9040a30378f3 (diff)
downloadcwm-b43ba68cd49c5275d9a817901bc52e5ab9e1fa0f.tar.gz
get rid of the xfree() wrapper around free(); from Tiago Cunha.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 72ae3eb..26fc283 100644
--- a/menu.c
+++ b/menu.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.
*
- * $OpenBSD: menu.c,v 1.42 2012/11/07 14:39:44 okan Exp $
+ * $OpenBSD: menu.c,v 1.43 2012/11/07 20:34:39 okan Exp $
*/
#include <sys/param.h>
@@ -188,7 +188,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt,
out:
if ((mc.flags & CWM_MENU_DUMMY) == 0 && mi->dummy) {
/* no mouse based match */
- xfree(mi);
+ free(mi);
mi = NULL;
}
@@ -225,7 +225,7 @@ menu_complete_path(struct menu_ctx *mc)
while ((mi = TAILQ_FIRST(&menuq)) != NULL) {
TAILQ_REMOVE(&menuq, mi, entry);
- xfree(mi);
+ free(mi);
}
if (path[0] != '\0')
@@ -233,7 +233,7 @@ menu_complete_path(struct menu_ctx *mc)
mc->searchstr, path);
else if (!mr->abort)
strlcpy(mr->text, mc->searchstr, sizeof(mr->text));
- xfree(path);
+ free(path);
return (mr);
}