mke2fs: use ext2fs_get_device_size2() on all platforms
commit108f3021a6b68a86eae3bd9da7f9ce8a1568ce50
authorEric Biggers <ebiggers@google.com>
Wed, 16 Jun 2021 04:53:31 +0000 (15 21:53 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 7 Jul 2021 02:43:25 +0000 (6 22:43 -0400)
tree24593dc9984c33080e454e2263b1793f969d60d6
parent6c60acbb945701a08373bee5b0689563eedf6ed2
mke2fs: use ext2fs_get_device_size2() on all platforms

Since commit e8c858047be6 ("libext2fs: fix build issue for on
Windows/Cygwin systems"), ext2fs_get_device_size2() is available in
Windows builds of libext2fs.  So there is no need for mke2fs to call
ext2fs_get_device_size() instead.

This fixes a -Wincompatible-pointer-types warning because
ext2fs_get_device_size() was being passed a 'blk64_t *', but it expected
a 'blk_t *'.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c