summaryrefslogtreecommitdiff
path: root/src/filter.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-08 21:12:21 -0500
committerWill Estes <westes575@gmail.com>2015-12-09 09:51:17 -0500
commit1cc5d870326d0c574a21bbe85457bfc50d6cc43e (patch)
tree8bbb5c8f2195d326bf914fc4755f3f62e27db81d /src/filter.c
parentc53d722b0b4e81b08cfc2f9ff6675a7abe0de2c3 (diff)
Removed flex_realloc().
As with flex_alloc(), replace calls to flex_realloc(), which was just a wrapper around realloc().
Diffstat (limited to 'src/filter.c')
-rw-r--r--src/filter.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/filter.c b/src/filter.c
index ac2f799..aebc2fc 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -75,12 +75,7 @@ struct filter *filter_create_ext (struct filter *chain, const char *cmd,
while ((s = va_arg (ap, const char *)) != NULL) {
if (f->argc >= max_args) {
max_args += 8;
- f->argv =
- (const char **) flex_realloc (f->argv,
- sizeof (char
- *) *
- (max_args +
- 1));
+ f->argv = realloc(f->argv, sizeof(char*) * (max_args + 1));
}
f->argv[f->argc++] = s;
}