ports/misc/mc/files/patch-src-info.c
Max Khon 694ecd186a - Fix CAN-2004-0226, CAN-2004-0231, CAN-2004-0232.
- Do not use :: in patch file names.
- Patch for CAN-2003-1023 is now contained in patch-vfs-direntry.c.
- Bump PORTREVISION.

Submitted by:	Jakub Jelinek <jakub@redhat.com>
2004-06-14 20:56:00 +00:00

20 lines
743 B
C

--- src/info.c.orig Wed Jan 29 04:58:22 2003
+++ src/info.c Tue Jun 15 03:15:09 2004
@@ -123,7 +123,7 @@
size_trunc_len (buffer1, 5, myfs_stats.avail, 1);
size_trunc_len (buffer2, 5, myfs_stats.total, 1);
printw (_("Free space: %s (%d%%) of %s"), buffer1, myfs_stats.total ?
- 100 * myfs_stats.avail / myfs_stats.total : 0, buffer2);
+ (int) (100.0 * myfs_stats.avail / myfs_stats.total) : 0, buffer2);
} else
addstr (_("No space information"));
@@ -170,7 +170,7 @@
printw (_("Size: %s"), buffer);
#ifdef HAVE_ST_BLOCKS
printw ((buf.st_blocks==1) ?
- _(" (%d block)") : _(" (%d blocks)"), buf.st_blocks);
+ _(" (%ld block)") : _(" (%ld blocks)"), (long) buf.st_blocks);
#endif
}