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/dictionary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/dictionary.c') diff --git a/libdimension/dictionary.c b/libdimension/dictionary.c index ea6bbdc..3264a3c 100644 --- a/libdimension/dictionary.c +++ b/libdimension/dictionary.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2010-2011 Tavian Barnes * + * Copyright (C) 2010-2014 Tavian Barnes * * * * This file is part of The Dimension Library. * * * @@ -35,7 +35,7 @@ struct dmnsn_dictionary { dmnsn_dictionary * dmnsn_new_dictionary(size_t obj_size) { - dmnsn_dictionary *dict = dmnsn_malloc(sizeof(dmnsn_dictionary)); + dmnsn_dictionary *dict = DMNSN_MALLOC(dmnsn_dictionary); dict->obj_size = obj_size; dict->prefix = dmnsn_strdup(""); dict->value = NULL; -- cgit v1.2.3