aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan2009-06-20 00:22:39 +0000
committerokan2009-06-20 00:22:39 +0000
commitc6af5e9b967797d315037b26aa05fec5b3e6ef44 (patch)
treed43509362b21d72dea32d8a79f4b199e95b0f566 /calmwm.c
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 'calmwm.c')
-rw-r--r--calmwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calmwm.c b/calmwm.c
index 67e76a3..eb924e8 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -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.c,v 1.39 2009/05/18 00:23:35 okan Exp $
+ * $Id: calmwm.c,v 1.40 2009/06/20 00:22:39 okan Exp $
*/
#include "headers.h"
@@ -111,7 +111,7 @@ x_setup(void)
int i;
for (i = 0; i < ScreenCount(X_Dpy); i++) {
- XCALLOC(sc, struct screen_ctx);
+ sc = xcalloc(1, sizeof(*sc));
x_setupscreen(sc, i);
TAILQ_INSERT_TAIL(&Screenq, sc, entry);
}