shithub: lwext4

Download patch

ref: 854a6310224e668ef55d11616ef8ace2bda1be45
parent: 809b27e9dcf7f7120b98b03b13ceb624302e8183
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Sat Jan 23 03:16:42 EST 2016

ext4_filedev: use ftello instead of ftell.

--- a/blockdev/linux/ext4_filedev.c
+++ b/blockdev/linux/ext4_filedev.c
@@ -74,7 +74,7 @@
 		return EFAULT;
 
 	_filedev.part_offset = 0;
-	_filedev.part_size = ftell(dev_file);
+	_filedev.part_size = ftello(dev_file);
 	_filedev.bdif->ph_bcnt = _filedev.part_size / _filedev.bdif->ph_bsize;
 
 	return EOK;