diff options
author | oga <oga> | 2008-04-16 13:38:09 +0000 |
---|---|---|
committer | oga <oga> | 2008-04-16 13:38:09 +0000 |
commit | f473dc3d12f4a1237fa020bff58fd44c3c6489de (patch) | |
tree | 7584efc245cd1a99b292a7fe07f3dbcf60eab7fc /calmwm.h | |
parent | f67772be650718b2e408a26ef08e1946a0abf1ab (diff) | |
download | cwm-f473dc3d12f4a1237fa020bff58fd44c3c6489de.tar.gz cwm-f473dc3d12f4a1237fa020bff58fd44c3c6489de.tar.xz cwm-f473dc3d12f4a1237fa020bff58fd44c3c6489de.zip |
Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc
respectively. ok okan.
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h index 9bf2f25..d505426 100644 --- a/calmwm.h +++ b/calmwm.h @@ -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); |