From ef98e35c9c44148611aa2c23325431d19405c781 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 6 May 2014 21:23:55 -0400 Subject: malloc: New DMNSN_MALLOC() macro to save a sizeof(). --- libdimension/tests/refcount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/tests/refcount.c') 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 * + * Copyright (C) 2012-2014 Tavian Barnes * * * * 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; } -- cgit v1.2.3