freebsd-ports/sysutils/disktool/files/extrapatch-disktool.c
Emanuel Haupt 99b92e4d72 - Add extra patch to fix functionality under > 4.x
(disk usage would always show 0)
- Bump PORTREVISION

PR:		88151
Submitted by:	Serge Gagnon <serge.gagnon@b2b2c.ca>
2005-10-28 20:36:30 +00:00

15 lines
511 B
C

--- disktool.c.orig Fri Oct 28 14:10:55 2005
+++ disktool.c Fri Oct 28 14:13:09 2005
@@ -168,9 +168,9 @@
}
/* ==========================================================================*/
-long kbytes(blocks, blocksize)
- long blocks;
- long blocksize;
+int64_t kbytes(blocks, blocksize)
+ int64_t blocks;
+ uint64_t blocksize;
{
/* Return number of kilobytes given the number of blocks and the block size.
This isn't quite trivial because a 32 bit signed long integer could easily