]> git.pld-linux.org Git - packages/kdelibs.git/commitdiff
- rather const start to "const char" auto/th/kdelibs-3_5_10-11 auto/ti/kdelibs-3_5_10-11
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 19 May 2009 12:34:32 +0000 (12:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- upstream bug is https://bugs.kde.org/show_bug.cgi?id=193242

Changed files:
    kdelibs-gcc44.patch -> 1.2

kdelibs-gcc44.patch

index d8a3ec060d84a443a9933f7612768e16297f15d2..7dc36894545fbb47f2d9a349d0c2cd4cb630ee86 100644 (file)
@@ -1,23 +1,20 @@
+Upstream URL: https://bugs.kde.org/show_bug.cgi?id=193242
+Signed off by: Elan Ruusamäe <glen@delfi.ee>
 --- kdelibs-3.5.10/kioslave/ftp/ftp.cc~        2009-05-19 14:57:21.000000000 +0300
 +++ kdelibs-3.5.10/kioslave/ftp/ftp.cc 2009-05-19 14:57:24.016475767 +0300
-@@ -876,9 +876,9 @@
+@@ -876,5 +876,5 @@
    // 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), '(');
-+  char *start = strchr((char *)ftpResponse(3), '(');
++  const char *start = strchr(ftpResponse(3), '(');
    if ( !start )
--    start = strchr(ftpResponse(3), '=');
-+    start = strchr((char *)ftpResponse(3), '=');
-   if ( !start ||
-        ( sscanf(start, "(%d,%d,%d,%d,%d,%d)",&i[0], &i[1], &i[2], &i[3], &i[4], &i[5]) != 6 &&
-          sscanf(start, "=%d,%d,%d,%d,%d,%d", &i[0], &i[1], &i[2], &i[3], &i[4], &i[5]) != 6 ) )
 @@ -931,7 +931,7 @@
      return ERR_INTERNAL;
    }
  
 -  char *start = strchr(ftpResponse(3), '|');
-+  char *start = strchr((char *)ftpResponse(3), '|');
++  const char *start = strchr(ftpResponse(3), '|');
    if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
      return ERR_INTERNAL;
  
This page took 0.05103 seconds and 4 git commands to generate.