From bb459beb032cfa9473cdef21ef645b350d61728c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Jun 2009 16:34:50 +0000 Subject: Whitespace and more syncing. --- xmalloc.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'xmalloc.c') diff --git a/xmalloc.c b/xmalloc.c index 986a017f..d71bec08 100644 --- a/xmalloc.c +++ b/xmalloc.c @@ -1,4 +1,4 @@ -/* $Id: xmalloc.c,v 1.8 2009-01-29 19:24:34 nicm Exp $ */ +/* $Id: xmalloc.c,v 1.9 2009-06-25 16:34:50 nicm Exp $ */ /* * Copyright (c) 2004 Nicholas Marriott @@ -50,9 +50,6 @@ xcalloc(size_t nmemb, size_t size) if ((ptr = calloc(nmemb, size)) == NULL) fatal("xcalloc failed"); -#ifdef DEBUG - xmalloc_new(xmalloc_caller(), ptr, nmemb * size); -#endif return (ptr); } @@ -66,9 +63,6 @@ xmalloc(size_t size) if ((ptr = malloc(size)) == NULL) fatal("xmalloc failed"); -#ifdef DEBUG - xmalloc_new(xmalloc_caller(), ptr, size); -#endif return (ptr); } @@ -85,9 +79,6 @@ xrealloc(void *oldptr, size_t nmemb, size_t size) if ((newptr = realloc(oldptr, newsize)) == NULL) fatal("xrealloc failed"); -#ifdef DEBUG - xmalloc_change(xmalloc_caller(), oldptr, newptr, nmemb * size); -#endif return (newptr); } @@ -97,10 +88,6 @@ xfree(void *ptr) if (ptr == NULL) fatalx("null pointer"); free(ptr); - -#ifdef DEBUG - xmalloc_free(ptr); -#endif } int printflike2 @@ -125,9 +112,6 @@ xvasprintf(char **ret, const char *fmt, va_list ap) if (i < 0 || *ret == NULL) fatal("xvasprintf failed"); -#ifdef DEBUG - xmalloc_new(xmalloc_caller(), *ret, i + 1); -#endif return (i); } -- cgit