From e867b3c3a8431cc8331ceddfe427cd70fce08f2f Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Wed, 18 Jun 2008 07:23:41 +0000 Subject: Removed const_cast hack from Aptitude as apparently its wrong. git-svn-id: http://svn.telesphoreo.org/trunk@330 514c082c-b64e-11dc-b46d-3d985efe055d --- data/aptitude/const.diff | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 data/aptitude/const.diff (limited to 'data') diff --git a/data/aptitude/const.diff b/data/aptitude/const.diff deleted file mode 100644 index 9a3ee38da..000000000 --- a/data/aptitude/const.diff +++ /dev/null @@ -1,30 +0,0 @@ -diff -ru aptitude-0.4.4.orig/src/vscreen/transcode.cc aptitude-0.4.4.orig+iPhone/src/vscreen/transcode.cc ---- aptitude-0.4.4.orig/src/vscreen/transcode.cc 2006-10-27 04:26:08.000000000 +0000 -+++ aptitude-0.4.4.orig+iPhone/src/vscreen/transcode.cc 2008-05-13 09:30:43.000000000 +0000 -@@ -105,7 +106,7 @@ - while(inremaining>0) - { - if(iconv(state, -- const_cast(&inbuf), &inremaining, -+ &inbuf, &inremaining, - &outbufcur, &outremaining) == ((size_t)-1)) - { - // Some error conditions can be corrected. There are three -@@ -154,7 +155,7 @@ - const char *errbuf = "?"; - size_t errbufsize = strlen(errbuf); - -- result = iconv(state2, const_cast(&errbuf), -+ result = iconv(state2, &errbuf, - &errbufsize, &outbufcur, &outremaining); - - -@@ -173,7 +174,7 @@ - outbuf = (char *) realloc(outbuf, outbufsize); - outbufcur = outbuf+idx; - -- result = iconv(state2, const_cast(&errbuf), -+ result = iconv(state2, &errbuf, - &errbufsize, &outbufcur, &outremaining); - } - -- cgit v1.2.3