summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2009-06-20 00:22:39 +0000
committerokan <okan>2009-06-20 00:22:39 +0000
commit58d12134b1679a9172a7131abffc27769780b9c5 (patch)
treeffd2aa13b869b39db64f2a18488c87bfc2aa9882 /mousefunc.c
parent18c7d89c985cda7a9a5fa7de7c13ae177509380b (diff)
downloadcwm-58d12134b1679a9172a7131abffc27769780b9c5.tar.gz
cwm-58d12134b1679a9172a7131abffc27769780b9c5.tar.xz
cwm-58d12134b1679a9172a7131abffc27769780b9c5.zip
unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the
place anyway, this makes things a bit more consistent; from Thomas Pfaff

ok oga@
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mousefunc.c b/mousefunc.c
index b98a073..00ccab5 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -234,7 +234,7 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg)
 			if (wname == NULL)
 				continue;
 
-			XCALLOC(mi, struct menu);
+			mi = xcalloc(1, sizeof(*mi));
 			strlcpy(mi->text, wname, sizeof(mi->text));
 			mi->ctx = cc;
 			TAILQ_INSERT_TAIL(&menuq, mi, entry);
@@ -268,7 +268,7 @@ mousefunc_menu_cmd(struct client_ctx *cc, void *arg)
 
 	TAILQ_INIT(&menuq);
 	TAILQ_FOREACH(cmd, &Conf.cmdq, entry) {
-		XCALLOC(mi, struct menu);
+		mi = xcalloc(1, sizeof(*mi));
 		strlcpy(mi->text, cmd->label, sizeof(mi->text));
 		mi->ctx = cmd;
 		TAILQ_INSERT_TAIL(&menuq, mi, entry);