summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-05-04 11:51:56 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-05-04 11:55:07 -0400
commitd8e10d648b12b8595e9f177ec8f1a71d24aecea5 (patch)
tree2a14407a2ae5ff5efa01ff25d89de8a94d553e34 /parse.c
parentd40691e31e2674d7d95ec9160b9897805ce3f43b (diff)
downloadbfs-d8e10d648b12b8595e9f177ec8f1a71d24aecea5.tar.xz
stat: Get rid of bfs_fstat()
We can just use bfs_stat() with a NULL at_path.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 10a7300..4be493b 100644
--- a/parse.c
+++ b/parse.c
@@ -419,7 +419,7 @@ static int expr_open(struct parser_state *state, struct expr *expr, const char *
}
struct bfs_stat sb;
- if (bfs_fstat(fileno(cfile->file), &sb) != 0) {
+ if (bfs_stat(fileno(cfile->file), NULL, 0, &sb) != 0) {
parse_error(state, "'%s': %m.\n", path);
goto out_close;
}