diff options
author | uwe <uwe@pkgsrc.org> | 2013-05-12 17:26:46 +0000 |
---|---|---|
committer | uwe <uwe@pkgsrc.org> | 2013-05-12 17:26:46 +0000 |
commit | 32b09d06de5b2de345f6f9d619fbf8e732f3ee3b (patch) | |
tree | 181faab43bf3c6c6495acc7cef9b3239e7d1fad1 /mail | |
parent | d09d7aef3f9494cfc9f34ab7a7fa5dd3fb69e5a7 (diff) | |
download | pkgsrc-32b09d06de5b2de345f6f9d619fbf8e732f3ee3b.tar.gz |
Make argument type match printf conversion specifier to print correct
numbers on big-endian systems.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mutt/Makefile | 4 | ||||
-rw-r--r-- | mail/mutt/distinfo | 3 | ||||
-rw-r--r-- | mail/mutt/patches/patch-mbox.c | 34 |
3 files changed, 38 insertions, 3 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile index f357409bb7a..afffd6902c1 100644 --- a/mail/mutt/Makefile +++ b/mail/mutt/Makefile @@ -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 --git a/mail/mutt/distinfo b/mail/mutt/distinfo index 371fb0203c9..89f2fb9e867 100644 --- a/mail/mutt/distinfo +++ b/mail/mutt/distinfo @@ -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-aj) = a0ee2bc9a7b9e743e313101899de3d991a9d2cad SHA1 (patch-ak) = 689305356812d04bd3b490c436ed898a4b308136 SHA1 (patch-al) = d03611108f76c33e87ac89a6e7eefc012297df86 SHA1 (patch-am) = faa80ebf308eddfcbbe5aeab2f52d2d356d540cf +SHA1 (patch-mbox.c) = 287334abc477182719c10c84845e97cde42e0ffc diff --git a/mail/mutt/patches/patch-mbox.c b/mail/mutt/patches/patch-mbox.c new file mode 100644 index 00000000000..8f897b842a5 --- /dev/null +++ b/mail/mutt/patches/patch-mbox.c @@ -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) + { |