building with gcc 4.4

Milos Jakubicek <[email protected]> Sun, 19 Apr 2009 02:20:47 +0200
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
Hi all,

I'm attaching a tiny patch to make cone building with gcc 4.4, please 
merge it.

Regards,
Milos Jakubicek

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p

_______________________________________________
Courier-cone mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone
cone-gcc44.patch (text/x-patch, 675 B)
--- libmail/maildiradd.C.orig	2009-04-18 20:28:15.000000000 +0200
+++ libmail/maildiradd.C	2009-04-18 20:28:33.000000000 +0200
@@ -165,7 +165,7 @@
 	if (flags.size() > 0)
 	{
 		newname = newname + MDIRSEP "2," + flags;
-		memcpy(strrchr(newname.c_str(), '/')-3, "cur", 3);
+		memcpy((void *) strrchr(newname.c_str(), '/')-3, "cur", 3);
 		// We go into the cur directory, now
 	}
 
--- libmail/qp.C.orig	2009-04-18 21:50:00.000000000 +0200
+++ libmail/qp.C	2009-04-18 21:50:03.000000000 +0200
@@ -16,7 +16,7 @@
 {
 	static const char xdigits[]="0123456789ABCDEFabcdef";
 
-	char *p=strchr(xdigits, c);
+	char *p=strchr((char *) xdigits, c);
 
 	if (p == NULL)
 		return -1;