diff options
author | Peter Karlsson <peterk@debian.org> | 2007-10-08 11:44:54 +0100 |
---|---|---|
committer | Peter Karlsson <peterk@debian.org> | 2007-10-08 11:44:54 +0100 |
commit | 21231056c2f4fb82730c0ac7e7f90456668cae38 (patch) | |
tree | 1f9ca6a27065dce5014adea7095596ec6a8cb744 /apt-pkg/indexfile.cc | |
parent | 28b68bf4207be80d4549579f34262f1248a2e528 (diff) | |
parent | 24401c09f0a826ec0074f46dfe70efe3aaf79f25 (diff) |
Merge upstream.
Diffstat (limited to 'apt-pkg/indexfile.cc')
-rw-r--r-- | apt-pkg/indexfile.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index ca11fc111..b38596143 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -13,6 +13,7 @@ #include <apt-pkg/error.h> #include <clocale> +#include <cstring> /*}}}*/ // Global list of Item supported @@ -112,8 +113,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_*) - 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); |