From a6b322f346c04ff7c39eb0c486e92725f3873e42 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Mon, 2 Jun 2008 09:40:04 +0000 Subject: Finally commiting aptitude. git-svn-id: http://svn.telesphoreo.org/trunk@300 514c082c-b64e-11dc-b46d-3d985efe055d --- data/aptitude/const.diff | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 data/aptitude/const.diff (limited to 'data/aptitude/const.diff') diff --git a/data/aptitude/const.diff b/data/aptitude/const.diff new file mode 100644 index 000000000..9a3ee38da --- /dev/null +++ b/data/aptitude/const.diff @@ -0,0 +1,30 @@ +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