commit | dd719dfe4eb1d8c15342ce05d2a0ab975c390d67 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Tue Jan 06 04:24:58 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jan 06 04:24:58 2015 +0000 |
tree | 78739851a18a15b85c51aca6061bdda15e6482b1 | |
parent | a5d63956c419f01a9e57414c23d3ded3a16e0f8a [diff] | |
parent | a382e2bdb22b5b68d83f32c6c339465b2e8f6e46 [diff] |
Merge "Use getmntent when accessing /proc/mounts."
diff --git a/edify/main.c b/edify/main.c index b3fad53..b1baa0b 100644 --- a/edify/main.c +++ b/edify/main.c
@@ -25,13 +25,12 @@ int expect(const char* expr_str, const char* expected, int* errors) { Expr* e; - int error; char* result; printf("."); int error_count = parse_string(expr_str, &e, &error_count); - if (error > 0 || error_count > 0) { + if (error_count > 0) { printf("error parsing \"%s\" (%d errors)\n", expr_str, error_count); ++*errors;