From 557b0af8ef1592e16423c1211c3795d3daa6e763 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 17 Jul 2001 23:53:16 +0000 Subject: [PATCH] fix sign of BLKGETSIZE ioctl argument in libxfs. --- doc/CHANGES | 1 + libxfs/init.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/CHANGES b/doc/CHANGES index c02d3ec65..d54eb0377 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -8,6 +8,7 @@ xfsprogs-1.3.1 (15 Jul 2001) - fix bug in xfs_growfs mount option parsing with external log - BLKSZSET ioctl now conditional via the Makefile (off by default) - rework some of the Debian packaging rules + - fix sign of BLKGETSIZE ioctl argument in libxfs xfsprogs-1.3.0 (11 Jul 2001) - reworked Makefiles to use libtool diff --git a/libxfs/init.c b/libxfs/init.c index 84dcd26f6..51b24e4c9 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -128,8 +128,8 @@ findsize(char *path) { int fd; int error; - long size; - struct stat64 st; + unsigned long size; + struct stat64 st; /* Test to see if we are dealing with a regular file rather than a * block device, if we are just use the size returned by stat64 -- 2.47.2