pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/mutt Make argument type match printf conversion s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3076e566ed1e
branches:  trunk
changeset: 618574:3076e566ed1e
user:      uwe <uwe%pkgsrc.org@localhost>
date:      Sun May 12 17:26:46 2013 +0000

description:
Make argument type match printf conversion specifier to print correct
numbers on big-endian systems.

diffstat:

 mail/mutt/Makefile             |   4 ++--
 mail/mutt/distinfo             |   3 ++-
 mail/mutt/patches/patch-mbox.c |  34 ++++++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 3 deletions(-)

diffs (65 lines):

diff -r a7398b4563df -r 3076e566ed1e mail/mutt/Makefile
--- a/mail/mutt/Makefile        Sun May 12 17:19:41 2013 +0000
+++ b/mail/mutt/Makefile        Sun May 12 17:26:46 2013 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.165 2013/02/06 23:22:46 jperkin Exp $
+# $NetBSD: Makefile,v 1.166 2013/05/12 17:26:46 uwe Exp $
 
 DISTNAME=              mutt-1.4.2.3
-PKGREVISION=           5
+PKGREVISION=           6
 CATEGORIES=            mail
 MASTER_SITES=          ftp://ftp.mutt.org/mutt/ \
                        ftp://gd.tuwien.ac.at/infosys/mail/mutt/ \
diff -r a7398b4563df -r 3076e566ed1e mail/mutt/distinfo
--- a/mail/mutt/distinfo        Sun May 12 17:19:41 2013 +0000
+++ b/mail/mutt/distinfo        Sun May 12 17:26:46 2013 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.35 2010/04/10 16:08:50 tron Exp $
+$NetBSD: distinfo,v 1.36 2013/05/12 17:26:46 uwe Exp $
 
 SHA1 (mutt-1.4.2.3.tar.gz) = b23e46873f0247e85a4417cf338d64ea698c9b2c
 RMD160 (mutt-1.4.2.3.tar.gz) = 59e66c308cd4967e587ad1dc73dd76c7f0d06ef1
@@ -14,3 +14,4 @@
 SHA1 (patch-ak) = 689305356812d04bd3b490c436ed898a4b308136
 SHA1 (patch-al) = d03611108f76c33e87ac89a6e7eefc012297df86
 SHA1 (patch-am) = faa80ebf308eddfcbbe5aeab2f52d2d356d540cf
+SHA1 (patch-mbox.c) = 287334abc477182719c10c84845e97cde42e0ffc
diff -r a7398b4563df -r 3076e566ed1e mail/mutt/patches/patch-mbox.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mutt/patches/patch-mbox.c    Sun May 12 17:26:46 2013 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-mbox.c,v 1.1 2013/05/12 17:26:46 uwe Exp $
+
+Make argument type match conversion specifier to print correct numbers
+on big-endian systems.
+
+--- mbox.c.orig        2007-05-23 01:17:53.000000000 +0000
++++ mbox.c
+@@ -127,7 +127,7 @@ int mmdf_parse_mailbox (CONTEXT *ctx)
+       count++;
+       if (!ctx->quiet && ReadInc && ((count % ReadInc == 0) || count == 1))
+       mutt_message (_("Reading %s... %d (%d%%)"), ctx->path, count,
+-                    loc / (ctx->size / 100 + 1));
++                    (int)(loc / (ctx->size / 100 + 1)));
+ 
+ 
+       if (ctx->msgcount == ctx->hdrmax)
+@@ -288,7 +288,7 @@ int mbox_parse_mailbox (CONTEXT *ctx)
+ 
+       if (!ctx->quiet && ReadInc && ((count % ReadInc == 0) || count == 1))
+       mutt_message (_("Reading %s... %d (%d%%)"), ctx->path, count,
+-                    ftell (ctx->fp) / (ctx->size / 100 + 1));
++                    (int)(ftell (ctx->fp) / (ctx->size / 100 + 1)));
+ 
+       if (ctx->msgcount == ctx->hdrmax)
+       mx_alloc_memory (ctx);
+@@ -796,7 +796,7 @@ int mbox_sync_mailbox (CONTEXT *ctx, int
+       j++;
+       if (!ctx->quiet && WriteInc && ((i % WriteInc) == 0 || j == 1))
+       mutt_message (_("Writing messages... %d (%d%%)"), i,
+-                    ftell (ctx->fp) / (ctx->size / 100 + 1));
++                    (int)(ftell (ctx->fp) / (ctx->size / 100 + 1)));
+ 
+       if (ctx->magic == M_MMDF)
+       {



Home | Main Index | Thread Index | Old Index