aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authorokan2009-06-20 00:22:39 +0000
committerokan2009-06-20 00:22:39 +0000
commitc6af5e9b967797d315037b26aa05fec5b3e6ef44 (patch)
treed43509362b21d72dea32d8a79f4b199e95b0f566 /parse.y
parent5065e7cff4666b454fb3c16be050811f58b9f24f (diff)
downloadcwm-c6af5e9b967797d315037b26aa05fec5b3e6ef44.tar.gz
unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the
place anyway, this makes things a bit more consistent; from Thomas Pfaff ok oga@
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 72489fa..9c501bc 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.20 2009/05/17 23:40:57 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.21 2009/06/20 00:22:39 okan Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -132,7 +132,7 @@ main : FONTNAME STRING {
YYERROR;
}
- XCALLOC(aw, struct autogroupwin);
+ aw = xcalloc(1, sizeof(*aw));
if ((p = strchr($3, ',')) == NULL) {
aw->name = NULL;
@@ -151,7 +151,7 @@ main : FONTNAME STRING {
| IGNORE STRING {
struct winmatch *wm;
- XCALLOC(wm, struct winmatch);
+ wm = xcalloc(1, sizeof(*wm));
strlcpy(wm->title, $2, sizeof(wm->title));
TAILQ_INSERT_TAIL(&conf->ignoreq, wm, entry);
@@ -503,7 +503,7 @@ parse_config(const char *filename, struct conf *xconf)
{
int errors = 0;
- XCALLOC(conf, struct conf);
+ conf = xcalloc(1, sizeof(*conf));
if ((file = pushfile(filename)) == NULL) {
free(conf);