about summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga <oga>2008-04-16 13:38:09 +0000
committeroga <oga>2008-04-16 13:38:09 +0000
commitf473dc3d12f4a1237fa020bff58fd44c3c6489de (patch)
tree7584efc245cd1a99b292a7fe07f3dbcf60eab7fc /calmwm.h
parentf67772be650718b2e408a26ef08e1946a0abf1ab (diff)
downloadcwm-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.h4
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);