summaryrefslogtreecommitdiff
path: root/src/cstore/unionfs/cstore-unionfs.hpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-13 10:56:03 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-13 10:56:03 -0700
commit5ed312ef6122c7f652c0c07e4357721b4dda8f4f (patch)
tree2f9e6f44104056bf6ee51ef80f5d0ff9adc8b650 /src/cstore/unionfs/cstore-unionfs.hpp
parent2aa6d8c6b022f6702437be126eacbe75be5d10aa (diff)
downloadvyatta-cfg-5ed312ef6122c7f652c0c07e4357721b4dda8f4f.tar.gz
vyatta-cfg-5ed312ef6122c7f652c0c07e4357721b4dda8f4f.zip
change all vector/string size to size_t just to be safe.
* would have been a problem if template tree becomes more than 2^32 levels deep or if value strings longer than 2^32 characters are allowed.
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.hpp')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp
index b0e7201..9e49064 100644
--- a/src/cstore/unionfs/cstore-unionfs.hpp
+++ b/src/cstore/unionfs/cstore-unionfs.hpp
@@ -107,7 +107,7 @@ private:
return pop_path(mutable_cfg_path);
};
void append_cfg_path(const vector<string>& path_comps) {
- for (unsigned int i = 0; i < path_comps.size(); i++) {
+ for (size_t i = 0; i < path_comps.size(); i++) {
push_cfg_path(path_comps[i]);
}
};