Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc

respectively.

ok okan.
This commit is contained in:
oga
2008-04-16 13:38:09 +00:00
parent f67772be65
commit f473dc3d12
5 changed files with 11 additions and 16 deletions

View File

@@ -409,11 +409,11 @@ void grab_label(struct client_ctx *);
void xfree(void *);
void *xmalloc(size_t);
void *xcalloc(size_t);
void *xcalloc(size_t, size_t);
char *xstrdup(const char *);
#define XMALLOC(p, t) ((p) = (t *)xmalloc(sizeof * (p)))
#define XCALLOC(p, t) ((p) = (t *)xcalloc(sizeof * (p)))
#define XCALLOC(p, t) ((p) = (t *)xcalloc(1, sizeof * (p)))
void screen_init(void);
struct screen_ctx *screen_fromroot(Window);