diff options
author | Elliott Hughes <enh@google.com> | 2014-02-28 16:45:56 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-02-28 16:45:56 -0800 |
commit | 4014501d79d060f0855b919ee20fa9db5448cfdf (patch) | |
tree | 538d5b49b366cf6124e6aecee2f12585231c6fcc /toolbox | |
parent | 1a1c42fda7ec6087355529337573dd3ec5e85d91 (diff) | |
download | system_core-4014501d79d060f0855b919ee20fa9db5448cfdf.zip system_core-4014501d79d060f0855b919ee20fa9db5448cfdf.tar.gz system_core-4014501d79d060f0855b919ee20fa9db5448cfdf.tar.bz2 |
Fix grep -f.
bionic has getline now.
Change-Id: I5e4ee137768ab3113dbe8a07406fa39f4b6546af
Diffstat (limited to 'toolbox')
-rw-r--r-- | toolbox/grep/grep.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/toolbox/grep/grep.c b/toolbox/grep/grep.c index b5bb2ef..5a4fa0c 100644 --- a/toolbox/grep/grep.c +++ b/toolbox/grep/grep.c @@ -294,10 +294,8 @@ read_patterns(const char *fn) err(2, "%s", fn); line = NULL; len = 0; -#ifndef ANDROID while ((rlen = getline(&line, &len, f)) != -1) add_pattern(line, *line == '\n' ? 0 : (size_t)rlen); -#endif free(line); if (ferror(f)) err(2, "%s", fn); |