bug-mailutils
[Top][All Lists]
Advanced

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

Re: [bug-mailutils] failure to build on amd64 & ia64


From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] failure to build on amd64 & ia64
Date: Wed, 16 Dec 2009 12:09:34 +0200

Hi Jordi,

Please try the attached patch.

Regards,
Sergey

diff --git a/imap4d/fetch.c b/imap4d/fetch.c
index 16caf33..faca25e 100644
--- a/imap4d/fetch.c
+++ b/imap4d/fetch.c
@@ -930,7 +930,7 @@ _frt_size (struct fetch_function_closure *ffc,
   
   mu_message_size (frt->msg, &size);
   mu_message_lines (frt->msg, &lines);
-  util_send ("%s %u", ffc->name, size + lines);
+  util_send ("%s %lu", ffc->name, (unsigned long) (size + lines));
   return RESP_OK;
 }
 
@@ -1312,7 +1312,7 @@ static size_t
 parsebuf_get_number (imap4d_parsebuf_t p)
 {
   char *cp;
-  unsigned n = strtoul (p->token, &cp, 10);
+  unsigned long n = strtoul (p->token, &cp, 10);
 
   if (*cp)
     imap4d_parsebuf_exit (p, "Syntax error: expected number");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]