From f9e890e07ed63a9bd14e36c74525f462ad7da015 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 10 May 2006 21:55:16 +0000 Subject: Add proper licensing --- common/compat.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'common/compat.c') diff --git a/common/compat.c b/common/compat.c index 8f89000..16fc14f 100644 --- a/common/compat.c +++ b/common/compat.c @@ -29,11 +29,6 @@ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * DAMAGE. - * - * - * CONTRIBUTORS - * Nate Nielsen - * */ #include "compat.h" @@ -43,12 +38,10 @@ void* reallocf(void* ptr, size_t size) { - void* ret = realloc(ptr, size); - - if(!ret && size) - free(ptr); - - return ret; + void* ret = realloc(ptr, size); + if(!ret && size) + free(ptr); + return ret; } #endif -- cgit v1.2.3