2013-09-26 17:14:40 +02:00

25 lines
831 B
Plaintext

$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;