diff mbox series

mkfs: Correct filesize declaration

Message ID 20250223141658.5257-1-bage@debian.org (mailing list archive)
State New
Headers show
Series mkfs: Correct filesize declaration | expand

Commit Message

Bastian Germann Feb. 23, 2025, 2:16 p.m. UTC
The filesize() implementation was changed to return off_t.
Its declaration still has long. Fix the declaration.

Fixes: 73fb78e5ee8940 ("mkfs: support copying in large or sparse files")
Signed-off-by: Bastian Germann <bage@debian.org>
---
 mkfs/proto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Carlos Maiolino Feb. 24, 2025, 9:31 a.m. UTC | #1
On Sun, Feb 23, 2025 at 03:16:54PM +0100, Bastian Germann wrote:
> The filesize() implementation was changed to return off_t.
> Its declaration still has long. Fix the declaration.
> 
> Fixes: 73fb78e5ee8940 ("mkfs: support copying in large or sparse files")
> Signed-off-by: Bastian Germann <bage@debian.org>

https://lore.kernel.org/linux-xfs/20250217155043.78452-1-preichl@redhat.com/T/#m90c87f94c6f85445432f403c57e8eeb8cf0c92c6

> ---
>  mkfs/proto.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mkfs/proto.c b/mkfs/proto.c
> index 6dd3a200..981f5b11 100644
> --- a/mkfs/proto.c
> +++ b/mkfs/proto.c
> @@ -20,7 +20,7 @@ static struct xfs_trans * getres(struct xfs_mount *mp, uint blocks);
>  static void rsvfile(xfs_mount_t *mp, xfs_inode_t *ip, long long len);
>  static int newregfile(char **pp, char **fname);
>  static void rtinit(xfs_mount_t *mp);
> -static long filesize(int fd);
> +static off_t filesize(int fd);
>  static int slashes_are_spaces;
> 
>  /*
> --
> 2.48.1
> 
>
diff mbox series

Patch

diff --git a/mkfs/proto.c b/mkfs/proto.c
index 6dd3a200..981f5b11 100644
--- a/mkfs/proto.c
+++ b/mkfs/proto.c
@@ -20,7 +20,7 @@  static struct xfs_trans * getres(struct xfs_mount *mp, uint blocks);
 static void rsvfile(xfs_mount_t *mp, xfs_inode_t *ip, long long len);
 static int newregfile(char **pp, char **fname);
 static void rtinit(xfs_mount_t *mp);
-static long filesize(int fd);
+static off_t filesize(int fd);
 static int slashes_are_spaces;
 
 /*