]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: Fix mismatched return type of filesize()
authorPavel Reichl <preichl@redhat.com>
Fri, 21 Feb 2025 18:57:57 +0000 (19:57 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Thu, 27 Feb 2025 19:23:07 +0000 (20:23 +0100)
commita5466cee9874412cfdd187f07c5276e1d4ef0fea
treea762c16caf274c4ab5e6154e70aae7bea42b4b86
parente10c19979396bea2a0ea1d3ca265fa54467e7188
xfsprogs: Fix mismatched return type of filesize()

The function filesize() was declared with a return type of 'long' but
defined with 'off_t'. This mismatch caused build issues due to type
incompatibility.

This commit updates the declaration to match the definition, ensuring
consistency and preventing potential compilation errors.

Fixes: 73fb78e5ee8 ("mkfs: support copying in large or sparse files")
Signed-off-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cem@kernel.org>
Fixes: 73fb78e5ee8 ("mkfs: support copying in large or sparse files")
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
mkfs/proto.c