diff options
author | Michael McConville <mmcconville@mykolab.com> | 2015-12-08 21:12:21 -0500 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2015-12-09 09:51:17 -0500 |
commit | 1cc5d870326d0c574a21bbe85457bfc50d6cc43e (patch) | |
tree | 8bbb5c8f2195d326bf914fc4755f3f62e27db81d /src/misc.c | |
parent | c53d722b0b4e81b08cfc2f9ff6675a7abe0de2c3 (diff) |
Removed flex_realloc().
As with flex_alloc(), replace calls to flex_realloc(), which was just a
wrapper around realloc().
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -67,7 +67,8 @@ static void sko_push(bool dc) } if(sko_len >= sko_sz){ sko_sz *= 2; - sko_stack = (struct sko_state*)flex_realloc(sko_stack,sizeof(struct sko_state)*sko_sz); + sko_stack = realloc(sko_stack, + sizeof(struct sko_state) * sko_sz); } /* initialize to zero and push */ @@ -719,7 +720,7 @@ void *reallocate_array (void *array, int size, size_t element_size) void *new_array; size_t num_bytes = element_size * size; - new_array = flex_realloc (array, num_bytes); + new_array = realloc(array, num_bytes); if (!new_array) flexfatal (_("attempt to increase array size failed")); |