aboutsummaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorStefan Hoffmann <stefan991@gmail.com>2014-05-02 18:25:49 +0200
committerStefan Hoffmann <stefan991@gmail.com>2014-05-09 15:49:33 +0200
commita080819c3ef93c41a0bbd14b3c5f76d26bb9d404 (patch)
tree39dde46f7816129723ae92875db955f7d42d7406 /src/tag.c
parentaff96730765a2fc347e30e474bc3049a85758b4d (diff)
downloadrneovim-a080819c3ef93c41a0bbd14b3c5f76d26bb9d404.tar.gz
rneovim-a080819c3ef93c41a0bbd14b3c5f76d26bb9d404.tar.bz2
rneovim-a080819c3ef93c41a0bbd14b3c5f76d26bb9d404.zip
replaced mch_fstat() with os_file_get_info_fd()
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tag.c b/src/tag.c
index d97eb61ab4..bfef5366d9 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -1511,12 +1511,10 @@ line_read_in:
* compute the first offset.
*/
if (state == TS_BINARY) {
- /* Get the tag file size (don't use mch_fstat(), it's not
- * portable). */
- if ((filesize = lseek(fileno(fp),
- (off_t)0L, SEEK_END)) <= 0)
+ // Get the tag file size.
+ if ((filesize = lseek(fileno(fp), (off_t)0L, SEEK_END)) <= 0) {
state = TS_LINEAR;
- else {
+ } else {
lseek(fileno(fp), (off_t)0L, SEEK_SET);
/* Calculate the first read offset in the file. Start