From c6af5e9b967797d315037b26aa05fec5b3e6ef44 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 20 Jun 2009 00:22:39 +0000 Subject: 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@ --- client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 47218f3..7c6b470 100644 --- a/client.c +++ b/client.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. * - * $Id: client.c,v 1.53 2009/06/20 00:19:56 okan Exp $ + * $Id: client.c,v 1.54 2009/06/20 00:22:39 okan Exp $ */ #include "headers.h" @@ -56,7 +56,7 @@ client_new(Window win, struct screen_ctx *sc, int mapped) if (win == None) return (NULL); - XCALLOC(cc, struct client_ctx); + cc = xcalloc(1, sizeof(*cc)); XGrabServer(X_Dpy); @@ -462,7 +462,7 @@ client_setname(struct client_ctx *cc) goto match; } - XMALLOC(wn, struct winname); + wn = xmalloc(sizeof(*wn)); wn->name = newname; TAILQ_INSERT_TAIL(&cc->nameq, wn, entry); cc->nameqlen++; -- cgit v1.2.3-2-gb3c3