summaryrefslogtreecommitdiff
path: root/src/z-virt.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-13 13:54:38 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-13 13:54:38 +0100
commitd9dc4907574b52afc7b5181e9813fd36da2ca201 (patch)
treec61c8cac02d052ef1a4c4f6b7f028ea7b5c13d79 /src/z-virt.c
parenta2819d22e68ba4557ffcbfc31b32df11454f8c07 (diff)
Inline safe_calloc() and remove z-virt.c
Diffstat (limited to 'src/z-virt.c')
-rw-r--r--src/z-virt.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/z-virt.c b/src/z-virt.c
deleted file mode 100644
index e6b545e2..00000000
--- a/src/z-virt.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 1997 Ben Harrison
- *
- * This software may be copied and distributed for educational, research,
- * and not for profit purposes provided that this copyright and statement
- * are included in all such copies.
- */
-
-#include "z-virt.h"
-
-/*
- * Calloc wrapper which aborts if NULL is returned by calloc
- */
-extern void *safe_calloc(size_t nmemb, size_t size)
-{
- void *p = calloc(nmemb, size);
- if ((nmemb > 0) && (p == NULL))
- {
- abort();
- }
- return p;
-}