]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexfile.cc
* ftparchive/apt-ftparchive.cc:
[apt.git] / apt-pkg / indexfile.cc
index ca11fc11143e97ac2fed8324042800a839ba5aab..08f71feb0e81be15b43f3234ab20fdbe85a484a7 100644 (file)
@@ -13,6 +13,7 @@
 #include <apt-pkg/error.h>
 
 #include <clocale>
 #include <apt-pkg/error.h>
 
 #include <clocale>
+#include <cstring>
                                                                        /*}}}*/
 
 // Global list of Item supported
                                                                        /*}}}*/
 
 // Global list of Item supported
@@ -40,7 +41,6 @@ pkgIndexFile::Type *pkgIndexFile::Type::GetType(const char *Type)
    return 0;
 }
                                                                        /*}}}*/
    return 0;
 }
                                                                        /*}}}*/
-    
 // IndexFile::ArchiveInfo - Stub                                       /*{{{*/
 // ---------------------------------------------------------------------
 /* */
 // IndexFile::ArchiveInfo - Stub                                       /*{{{*/
 // ---------------------------------------------------------------------
 /* */
@@ -112,8 +112,8 @@ string pkgIndexFile::LanguageCode()
      // we have a mapping of the language codes that contains all the language
      // codes that need the country code as well 
      // (like pt_BR, pt_PT, sv_SE, zh_*, en_*)
      // we have a mapping of the language codes that contains all the language
      // codes that need the country code as well 
      // (like pt_BR, pt_PT, sv_SE, zh_*, en_*)
-     char *need_full_langcode[] = { "pt","sv","zh","en", NULL };
-     for(char **s = need_full_langcode;*s != NULL; s++)
+     const char *need_full_langcode[] = { "pt","sv","zh","en", NULL };
+     for(const char **s = need_full_langcode;*s != NULL; s++)
        if(lang.find(*s) == 0)
           return lang.substr(0,5);
      
        if(lang.find(*s) == 0)
           return lang.substr(0,5);