diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-05-04 11:51:56 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-05-04 11:55:07 -0400 |
commit | d8e10d648b12b8595e9f177ec8f1a71d24aecea5 (patch) | |
tree | 2a14407a2ae5ff5efa01ff25d89de8a94d553e34 /parse.c | |
parent | d40691e31e2674d7d95ec9160b9897805ce3f43b (diff) | |
download | bfs-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |