summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-04-16 13:38:10 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-04-16 13:38:10 +0000
commit7c6df02da53fb4f03e1643ce6d80059136cf45bd (patch)
treefdf5d613a49b77c5314848b9808f39eb69e072bc /app/cwm/calmwm.h
parentd13575b30f1818f7d291e0ac3f6cea698892362e (diff)
Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc
respectively. ok okan.
Diffstat (limited to 'app/cwm/calmwm.h')
-rw-r--r--app/cwm/calmwm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/calmwm.h b/app/cwm/calmwm.h
index 16706c47c..ae05a0f9b 100644
--- a/app/cwm/calmwm.h
+++ b/app/cwm/calmwm.h
@@ -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: calmwm.h,v 1.34 2008/04/16 13:35:37 oga Exp $
+ * $Id: calmwm.h,v 1.35 2008/04/16 13:38:09 oga Exp $
*/
#ifndef _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);