From 588f2ef2f51d7bdf209820bfb244034863601939 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 25 Oct 2009 04:35:19 -0400 Subject: Fixed many compiler warnings from g++ 4.4 --- src/option.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/option.cc') diff --git a/src/option.cc b/src/option.cc index 1275e270..f47410e2 100644 --- a/src/option.cc +++ b/src/option.cc @@ -110,8 +110,8 @@ void process_option(const string& whence, const string& name, scope_t& scope, void process_environment(const char ** envp, const string& tag, scope_t& scope) { - const char * tag_p = tag.c_str(); - std::size_t tag_len = tag.length(); + const char * tag_p = tag.c_str(); + string::size_type tag_len = tag.length(); for (const char ** p = envp; *p; p++) { if (! tag_p || std::strncmp(*p, tag_p, tag_len) == 0) { -- cgit v1.2.3