summaryrefslogtreecommitdiff
path: root/misc/mc/files/patch-src-info.c
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-06-14 20:56:00 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-06-14 20:56:00 +0000
commit694ecd186a9b12f5115b130cb96dc3428c8dc76b (patch)
treef1a6e73aac755d8e00dfb5f10ac6a3618d9becf9 /misc/mc/files/patch-src-info.c
parent- Strip binaries (diff)
- 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>
Notes
Notes: svn path=/head/; revision=111487
Diffstat (limited to 'misc/mc/files/patch-src-info.c')
-rw-r--r--misc/mc/files/patch-src-info.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/mc/files/patch-src-info.c b/misc/mc/files/patch-src-info.c
new file mode 100644
index 000000000000..73c9ff177761
--- /dev/null
+++ b/misc/mc/files/patch-src-info.c
@@ -0,0 +1,20 @@
+--- 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
+ }
+