mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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@
This commit is contained in:
4
client.c
4
client.c
@@ -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++;
|
||||
|
Reference in New Issue
Block a user