64-bit platforms patch for Balsa 2.2.3



Hey everyone,

The attached patch is from Andreas Jochens <aj andaco de> who's working
on the amd64 port of Debian GNU/Linux which allows Balsa to compile
cleanly on amd64, ia64 and s390.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=266298

Cheers,
Andrew "Netsnipe" Lau

-- 
---------------------------------------------------------------------------
	Andrew "Netsnipe" Lau	<http://www.cse.unsw.edu.au/~alau/>
 Debian GNU/Linux Maintainer & UNSW Computing Students' Society President
				     -
		  "Nobody expects the Debian Inquisition!
     Our two weapons are fear and surprise...and ruthless efficiency!"
---------------------------------------------------------------------------
diff -ruN balsa-2.2.3.orig/libbalsa/imap/imap-commands.c balsa-2.2.3/libbalsa/imap/imap-commands.c
--- balsa-2.2.3.orig/libbalsa/imap/imap-commands.c	2004-08-10 18:24:51.000000000 +1000
+++ balsa-2.2.3/libbalsa/imap/imap-commands.c	2004-08-18 00:08:13.000000000 +1000
@@ -434,10 +434,10 @@
 
   if(flags) {
     gchar *str = enum_flag_to_str(flags);
-    cmd = g_strdup_printf("APPEND \"%s\" (%s) {%u%s}", mbx7, str, sz, litstr);
+    cmd = g_strdup_printf("APPEND \"%s\" (%s) {%u%s}", mbx7, str, (unsigned) sz, litstr);
     g_free(str);
   } else 
-    cmd = g_strdup_printf("APPEND \"%s\" {%u%s}", mbx7, sz, litstr);
+    cmd = g_strdup_printf("APPEND \"%s\" {%u%s}", mbx7, (unsigned) sz, litstr);
 
   c = imap_cmd_start(handle, cmd, &cmdno);
   g_free(mbx7); g_free(cmd);
diff -ruN balsa-2.2.3.orig/libbalsa/imap/imap-search.c balsa-2.2.3/libbalsa/imap/imap-search.c
--- balsa-2.2.3.orig/libbalsa/imap/imap-search.c	2004-07-30 00:34:28.000000000 +1000
+++ balsa-2.2.3/libbalsa/imap/imap-search.c	2004-08-18 00:08:57.000000000 +1000
@@ -215,7 +215,7 @@
      life! */
   if(use_literal)
     sio_printf(handle->sio, "{%u+}\r\n%s",
-               strlen(k->d.string.s), k->d.string.s);
+               (unsigned) strlen(k->d.string.s), k->d.string.s);
   else { /* No literal+ suppport, do it the old way */
     for (s = k->d.string.s; *s && (*s & 0x80) == 0; s++)
       ;
@@ -274,8 +274,8 @@
 static void
 imap_write_key_size(ImapMboxHandle *handle, gboolean negate, size_t size)
 {
-  if(negate) sio_printf(handle->sio, "NOT LARGER %u", size);
-  else       sio_printf(handle->sio, "LARGER %u", size);
+  if(negate) sio_printf(handle->sio, "NOT LARGER %u", (unsigned) size);
+  else       sio_printf(handle->sio, "LARGER %u", (unsigned) size);
 }
 
 /* private.  */

Attachment: signature.asc
Description: Digital signature



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