]> git.pld-linux.org Git - packages/kdelibs.git/blame - kdelibs-gcc44.patch
- add gcc 4.4 patch (thx patrys)
[packages/kdelibs.git] / kdelibs-gcc44.patch
CommitLineData
a516d5d3
ER
1--- kdelibs-3.5.10/kioslave/ftp/ftp.cc~ 2009-05-19 14:57:21.000000000 +0300
2+++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-05-19 14:57:24.016475767 +0300
3@@ -876,9 +876,9 @@
4 // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
5 // but anonftpd gives '227 =160,39,200,55,6,245'
6 int i[6];
7- char *start = strchr(ftpResponse(3), '(');
8+ char *start = strchr((char *)ftpResponse(3), '(');
9 if ( !start )
10- start = strchr(ftpResponse(3), '=');
11+ start = strchr((char *)ftpResponse(3), '=');
12 if ( !start ||
13 ( sscanf(start, "(%d,%d,%d,%d,%d,%d)",&i[0], &i[1], &i[2], &i[3], &i[4], &i[5]) != 6 &&
14 sscanf(start, "=%d,%d,%d,%d,%d,%d", &i[0], &i[1], &i[2], &i[3], &i[4], &i[5]) != 6 ) )
15@@ -931,7 +931,7 @@
16 return ERR_INTERNAL;
17 }
18
19- char *start = strchr(ftpResponse(3), '|');
20+ char *start = strchr((char *)ftpResponse(3), '|');
21 if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
22 return ERR_INTERNAL;
23
This page took 0.023752 seconds and 4 git commands to generate.