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/pigment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/pigment.c') diff --git a/libdimension/pigment.c b/libdimension/pigment.c index bc09ec7..6134c2b 100644 --- a/libdimension/pigment.c +++ b/libdimension/pigment.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2011 Tavian Barnes * + * Copyright (C) 2009-2014 Tavian Barnes * * * * This file is part of The Dimension Library. * * * @@ -29,7 +29,7 @@ dmnsn_pigment * dmnsn_new_pigment(void) { - dmnsn_pigment *pigment = dmnsn_malloc(sizeof(dmnsn_pigment)); + dmnsn_pigment *pigment = DMNSN_MALLOC(dmnsn_pigment); pigment->pigment_fn = NULL; pigment->initialize_fn = NULL; pigment->free_fn = NULL; -- cgit v1.2.3