summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches/patch-au
blob: 0003892256934a9e97c4b6f40698cb92ec3154bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-au,v 1.6 2011/01/18 10:22:58 markd Exp $

svn r975371. Fix build with gcc 4.4

--- kioslave/ftp/ftp.cc.orig	2008-08-19 18:18:12.000000000 +0000
+++ kioslave/ftp/ftp.cc
@@ -876,7 +876,7 @@ int Ftp::ftpOpenPASVDataConnection()
   // The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
   // but anonftpd gives '227 =160,39,200,55,6,245'
   int i[6];
-  char *start = strchr(ftpResponse(3), '(');
+  const char *start = strchr(ftpResponse(3), '(');
   if ( !start )
     start = strchr(ftpResponse(3), '=');
   if ( !start ||
@@ -931,7 +931,7 @@ int Ftp::ftpOpenEPSVDataConnection()
     return ERR_INTERNAL;
   }
 
-  char *start = strchr(ftpResponse(3), '|');
+  const char *start = strchr(ftpResponse(3), '|');
   if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
     return ERR_INTERNAL;