diff --git a/cone-gcc44.patch b/cone-gcc44.patch index 23528ab..03d4538 100644 --- a/cone-gcc44.patch +++ b/cone-gcc44.patch @@ -1,22 +1,23 @@ ---- 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; +--- libmail/maildiradd.C 24 May 2008 17:57:42 -0000 1.6 ++++ libmail/maildiradd.C 19 Apr 2009 11:54:45 -0000 +@@ -165,7 +165,8 @@ + 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 ++ memcpy(strrchr(const_cast(newname.c_str()), '/')-3, ++ "cur", 3); + // We go into the cur directory, now + } + +--- libmail/qp.C 27 May 2003 14:09:08 -0000 1.1 ++++ libmail/qp.C 19 Apr 2009 11:54:46 -0000 @@ -16,7 +16,7 @@ { - static const char xdigits[]="0123456789ABCDEFabcdef"; - + static const char xdigits[]="0123456789ABCDEFabcdef"; + - char *p=strchr(xdigits, c); -+ char *p=strchr((char *) xdigits, c); - - if (p == NULL) - return -1; ++ const char *p=strchr(xdigits, c); + + if (p == NULL) + return -1; diff --git a/cone.spec b/cone.spec index 1c79eea..30b60c5 100644 --- a/cone.spec +++ b/cone.spec @@ -3,7 +3,7 @@ Summary: CONE mail reader Name: cone Version: 0.75 -Release: 4%{?dist} +Release: 5%{?dist} URL: http://www.courier-mta.org/cone/ Source0: http://dl.sf.net/courier/%{name}-%{version}.tar.bz2 @@ -107,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT %doc cone/html %changelog +* Sun Apr 19 2009 Milos Jakubicek - 0.75-5 +- Updated cone-gcc44.patch according to upstream wishes. + * Sat Apr 18 2009 Milos Jakubicek - 0.75-4 - Fix FTBFS: added cone-gcc44.patch