diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-01-06 15:03:27 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-01-06 15:03:27 -0500 |
commit | 51da1abc549a6642a721371427b31f5990959fad (patch) | |
tree | 4cb0c5fa6202b7e5749a1075bdae28f85a44c7fc /parse.c | |
parent | 4a261b3969ca4ce6438eaed02e59bbc3f16ac121 (diff) | |
download | bfs-51da1abc549a6642a721371427b31f5990959fad.tar.xz |
parse: Minor cleanups from af7878c/7da0d28
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1074,9 +1074,7 @@ static struct expr *parse_empty(struct parser_state *state, int arg1, int arg2) expr->cost = 2000.0; expr->probability = 0.01; - struct cmdline *cmdline = state->cmdline; - - if (cmdline->optlevel < 4) { + if (state->cmdline->optlevel < 4) { // Since -empty attempts to open and read directories, it may // have side effects such as reporting permission errors, and // thus shouldn't be re-ordered without aggressive optimizations @@ -1092,9 +1090,7 @@ static struct expr *parse_empty(struct parser_state *state, int arg1, int arg2) * Parse -exec(dir)?/-ok(dir)?. */ static struct expr *parse_exec(struct parser_state *state, int flags, int arg2) { - struct cmdline *cmdline = state->cmdline; - - struct bfs_exec *execbuf = parse_bfs_exec(state->argv, flags, cmdline); + struct bfs_exec *execbuf = parse_bfs_exec(state->argv, flags, state->cmdline); if (!execbuf) { return NULL; } |