summaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorEric Andersen2001-11-19 11:45:39 +0000
committerEric Andersen2001-11-19 11:45:39 +0000
commit6f8b7ea452656faf0183e378cb9fd457ffd9b8d6 (patch)
tree86abe76230c2baf42c501f9bdc49beebdef224b8 /findutils/grep.c
parent55805bcba49abf296435be5282eca69c6bd4bb72 (diff)
downloadbusybox-6f8b7ea452656faf0183e378cb9fd457ffd9b8d6.zip
busybox-6f8b7ea452656faf0183e378cb9fd457ffd9b8d6.tar.gz
oops
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 7c1e0f6..d39dac1 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -216,14 +216,14 @@ static void load_regexes_from_file(const char *filename)
#ifdef CONFIG_FEATURE_CLEAN_UP
-static void destroy_regexes()
+static void destroy_regexes(void)
{
if (regexes == NULL)
return;
/* destroy all the elments in the array */
while (--nregexes >= 0) {
- regfree(regexes[nregexes]);
+ regfree(&(regexes[nregexes]));
}
if (regexes)
free(regexes);