summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-01-06 15:03:27 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-01-06 15:03:27 -0500
commit51da1abc549a6642a721371427b31f5990959fad (patch)
tree4cb0c5fa6202b7e5749a1075bdae28f85a44c7fc /parse.c
parent4a261b3969ca4ce6438eaed02e59bbc3f16ac121 (diff)
downloadbfs-51da1abc549a6642a721371427b31f5990959fad.tar.xz
parse: Minor cleanups from af7878c/7da0d28
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/parse.c b/parse.c
index 0e4eaad..bfc93af 100644
--- a/parse.c
+++ b/parse.c
@@ -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;
}