grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.

This commit is contained in:
Eric Andersen 2001-05-29 22:36:39 +00:00
parent 6e9e136fcb
commit 86f0167e39
2 changed files with 4 additions and 4 deletions

View File

@ -221,8 +221,8 @@ static void destroy_regexes()
/* destroy all the elments in the array */
while (--nregexes >= 0) {
regfree(regexes[nregexes]);
free(regexes[nregexes]);
regfree(&regexes[nregexes]);
free(&regexes[nregexes]);
}
}
#endif

4
grep.c
View File

@ -221,8 +221,8 @@ static void destroy_regexes()
/* destroy all the elments in the array */
while (--nregexes >= 0) {
regfree(regexes[nregexes]);
free(regexes[nregexes]);
regfree(&regexes[nregexes]);
free(&regexes[nregexes]);
}
}
#endif