summary refs log tree commit diff
path: root/menu.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 /menu.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 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 16cf400..ea4a24f 100644
--- a/menu.c
+++ b/menu.c
@@ -383,7 +383,7 @@ menu_handle_release(XEvent *e, struct menu_ctx *mc, struct screen_ctx *sc,
 		if (entry == i++)
 			break;
 	if (mi == NULL) {
-		XMALLOC(mi, struct menu);
+		mi = xmalloc(sizeof(*mi));
 		mi->text[0] = '\0';
 		mi->dummy = 1;
 	}