summaryrefslogtreecommitdiffstats
path: root/libdimension/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/tests')
-rw-r--r--libdimension/tests/display.c4
-rw-r--r--libdimension/tests/refcount.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/tests/display.c b/libdimension/tests/display.c
index d4e2a1c..133eb25 100644
--- a/libdimension/tests/display.c
+++ b/libdimension/tests/display.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2010 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Test Suite. *
* *
@@ -52,7 +52,7 @@ dmnsn_new_display(const dmnsn_canvas *canvas)
XSetWindowAttributes swa;
dmnsn_display *display;
- display = dmnsn_malloc(sizeof(dmnsn_display));
+ display = DMNSN_MALLOC(dmnsn_display);
display->dpy = NULL;
display->win = 0;
diff --git a/libdimension/tests/refcount.c b/libdimension/tests/refcount.c
index efceacd..68d7c1d 100644
--- a/libdimension/tests/refcount.c
+++ b/libdimension/tests/refcount.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2012 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2012-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Test Suite. *
* *
@@ -32,7 +32,7 @@ typedef struct dmnsn_foo {
static dmnsn_foo *
dmnsn_new_foo(void)
{
- dmnsn_foo *foo = dmnsn_malloc(sizeof(dmnsn_foo));
+ dmnsn_foo *foo = DMNSN_MALLOC(dmnsn_foo);
DMNSN_REFCOUNT_INIT(foo);
return foo;
}