Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c

(maybe I'll remove it later).
This commit is contained in:
Mark Whitley
2000-07-12 23:35:21 +00:00
parent 6f96e674b9
commit c41e8c840f
6 changed files with 17 additions and 26 deletions

View File

@@ -146,8 +146,7 @@ extern int grep_main(int argc, char **argv)
reflags = REG_NOSUB | REG_NEWLINE;
if (ignore_case)
reflags |= REG_ICASE;
if (bb_regcomp(&regex, argv[optind], reflags) != 0)
exit(1);
xregcomp(&regex, argv[optind], reflags);
/* argv[(optind+1)..(argc-1)] should be names of file to grep through. If
* there is more than one file to grep, we will print the filenames */