summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/misc.c b/misc.c
index f4dbb57..d5d8b43 100644
--- a/misc.c
+++ b/misc.c
@@ -78,22 +78,6 @@ MallocFailed(void)
exit(1);
}
-static char*
-Realloc(
- char *p,
- int s)
-{
- if (!p)
- p = malloc(s);
- else
- p = realloc(p, s);
-
- if (!p)
- MallocFailed();
-
- return p;
-}
-
static void
BadMalloc(
int line)
@@ -215,7 +199,7 @@ doInitNewRule(
if (rule_number == config_info->lines_allocated)
{
if ((config_info->config_file_data = (struct config_line**)
- Realloc((char*)config_info->config_file_data,
+ realloc((char*)config_info->config_file_data,
(config_info->lines_allocated += ADD_LINES) *
sizeof(struct config_line *))) == NULL)
{