diff options
author | okan | 2009-06-20 00:22:39 +0000 |
---|---|---|
committer | okan | 2009-06-20 00:22:39 +0000 |
commit | c6af5e9b967797d315037b26aa05fec5b3e6ef44 (patch) | |
tree | d43509362b21d72dea32d8a79f4b199e95b0f566 /group.c | |
parent | 5065e7cff4666b454fb3c16be050811f58b9f24f (diff) | |
download | cwm-c6af5e9b967797d315037b26aa05fec5b3e6ef44.tar.gz |
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 '')
-rw-r--r-- | group.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. * - * $Id: group.c,v 1.30 2009/05/19 12:49:37 sthen Exp $ + * $Id: group.c,v 1.31 2009/06/20 00:22:39 okan Exp $ */ #include "headers.h" @@ -304,7 +304,7 @@ group_menu(XButtonEvent *e) if (TAILQ_EMPTY(&gc->clients)) continue; - XCALLOC(mi, struct menu); + mi = xcalloc(1, sizeof(*mi)); if (gc->hidden) snprintf(mi->text, sizeof(mi->text), "%d: [%s]", gc->shortcut, shortcut_to_name[gc->shortcut]); |