From 8caff3a42d43b9b1377f3802a105817dcd4301dc Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 30 Oct 2009 05:58:36 +0000 Subject: libmdoc and libman now using non-recoverable allocations (simpler code). --- mandoc.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'mandoc.c') diff --git a/mandoc.c b/mandoc.c index 91a0fa92..068b365d 100644 --- a/mandoc.c +++ b/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.4 2009/10/28 19:21:59 kristaps Exp $ */ +/* $Id: mandoc.c,v 1.5 2009/10/30 05:58:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -150,19 +150,6 @@ mandoc_realloc(void *ptr, size_t size) } -void * -mandoc_reallocf(void *old_ptr, size_t size) /* FIXME: remove (not used) */ -{ - void *ptr; - - ptr = realloc(old_ptr, size); - if (NULL == ptr) - free(old_ptr); - - return(ptr); -} - - char * mandoc_strdup(const char *ptr) { -- cgit v1.2.3