aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authoroga2008-04-16 13:38:09 +0000
committeroga2008-04-16 13:38:09 +0000
commit579efe92d1c484a6d8b9399b2abdb6440f9e92ea (patch)
tree54a68e890f6637336f92a6cd965818e3b14cafe8 /calmwm.h
parent02211e5b89f2fd8670b150d7892f56d0f6dba351 (diff)
downloadcwm-579efe92d1c484a6d8b9399b2abdb6440f9e92ea.tar.gz
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/calmwm.h b/calmwm.h
index 16706c4..ae05a0f 100644
--- a/calmwm.h
+++ b/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);