From: Nathan Scott Date: Tue, 17 Jul 2001 23:53:16 +0000 (+0000) Subject: fix sign of BLKGETSIZE ioctl argument in libxfs. X-Git-Tag: v2.0.0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=557b0af8ef1592e16423c1211c3795d3daa6e763;p=thirdparty%2Fxfsprogs-dev.git fix sign of BLKGETSIZE ioctl argument in libxfs. --- 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