summaryrefslogtreecommitdiffstats
path: root/libdimension/interior.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/interior.c')
-rw-r--r--libdimension/interior.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libdimension/interior.c b/libdimension/interior.c
index 546a420..452d879 100644
--- a/libdimension/interior.c
+++ b/libdimension/interior.c
@@ -20,19 +20,14 @@
#include "dimension.h"
#include <errno.h>
-#include <stdlib.h> /* For malloc */
/* Allocate an interior */
dmnsn_interior *
dmnsn_new_interior()
{
- dmnsn_interior *interior = malloc(sizeof(dmnsn_interior));
- if (interior) {
- interior->ior = 1.0;
- interior->free_fn = NULL;
- } else {
- errno = ENOMEM;
- }
+ dmnsn_interior *interior = dmnsn_malloc(sizeof(dmnsn_interior));
+ interior->ior = 1.0;
+ interior->free_fn = NULL;
return interior;
}