From 0b07dcbb4fd7e7cc4a1d553cc93cdbae1b4768ec Mon Sep 17 00:00:00 2001 From: tedbullock Date: Mon, 22 Oct 2007 04:29:28 +0000 Subject: [PATCH] Removed silly realloc portability stuff --- httperf/src/core.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/httperf/src/core.c b/httperf/src/core.c index 856fa42..01443e9 100755 --- a/httperf/src/core.c +++ b/httperf/src/core.c @@ -68,33 +68,6 @@ #include #include - -/*if we don't have GNU compatible realloc, fake it*/ -#if HAVE_REALLOC == 0 -void *rpl_realloc(void *ptr, size_t size) - { - if (ptr == NULL && size == 0) - { - return NULL; - } - - if (size == 0) - { - free(ptr); - return NULL; - } - - if (ptr == NULL) - { - return malloc(size); - } - -#undef realloc - return realloc(ptr, size); -#define realloc rpl_realloc - } -#endif - #define HASH_TABLE_SIZE 1024 /* can't have more than this many servers */ #define MIN_IP_PORT IPPORT_RESERVED #define MAX_IP_PORT 65535