summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
authorÁngel Guzmán Maeso <shakaran@gmail.com>2013-08-21 19:38:35 +0200
committerMichael Vogt <mvo@debian.org>2013-08-22 22:25:44 +0200
commitec4835a14aae3d4995894c44ec4c4801bac0235d (patch)
treebc5d1fe6d0e2891347ddf3d2e29549fa91149aa0 /apt-pkg/contrib/fileutl.cc
parentfbe0969131dc2472bcefbceaf390015ba68e1327 (diff)
apt-pkg:contrib Avoid compiler warning about sign-compare
The fix avoid the warning "comparison between signed and unsigned integer expressions [-Wsign-compare]"· The index for the loop needs to be unsigned for compare with globbuf.gl_pathc structure member
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r--apt-pkg/contrib/fileutl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index dca468c63..47a91c294 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1777,7 +1777,8 @@ std::vector<std::string> Glob(std::string const &pattern, int flags)
{
std::vector<std::string> result;
glob_t globbuf;
- int glob_res, i;
+ int glob_res;
+ unsigned int i;
glob_res = glob(pattern.c_str(), flags, NULL, &globbuf);